Guest User

Untitled

a guest
May 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. <?php
  2.  
  3. use Symfony\Component\HttpKernel\Kernel;
  4. use Symfony\Component\Config\Loader\LoaderInterface;
  5.  
  6. class AppKernel extends Kernel
  7. {
  8. public function registerBundles()
  9. {
  10. $bundles = array(
  11. new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
  12. new Symfony\Bundle\SecurityBundle\SecurityBundle(),
  13. new Symfony\Bundle\TwigBundle\TwigBundle(),
  14. new Symfony\Bundle\MonologBundle\MonologBundle(),
  15. new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
  16. new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
  17. new Symfony\Bundle\AsseticBundle\AsseticBundle(),
  18. new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
  19. new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
  20. new EmVista\EmVistaBundle\EmVistaBundle(),
  21. new Respect\ValidationBundle\RespectValidationBundle()
  22. );
  23.  
  24. if (in_array($this->getEnvironment(), array('dev', 'test'))) {
  25. $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
  26. $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
  27. $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
  28. }
  29.  
  30. return $bundles;
  31. }
  32.  
  33. public function registerContainerConfiguration(LoaderInterface $loader)
  34. {
  35. $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
  36. }
  37. }
Add Comment
Please, Sign In to add comment