Created
September 11, 2017 09:41
-
-
Save eghojansu/d42a0b452a3537299b9da1677316d9cd to your computer and use it in GitHub Desktop.
Snippet for post Install nelmio/alice di Framework Symfony
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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