Skip to content

Instantly share code, notes, and snippets.

@eghojansu
Created September 11, 2017 09:41
Show Gist options
  • Save eghojansu/d42a0b452a3537299b9da1677316d9cd to your computer and use it in GitHub Desktop.
Save eghojansu/d42a0b452a3537299b9da1677316d9cd to your computer and use it in GitHub Desktop.
Snippet for post Install nelmio/alice di Framework Symfony
<?php
// app/AppKernel.php
class AppKernel extends Kernel
{
// ...
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
// Add these bundles
$bundles[] = new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
$bundles[] = new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle();
}
// ...
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment