1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- use Symfony\Component\Config\Loader\LoaderInterface;
- use Symfony\Component\HttpKernel\Kernel;
- class AppKernel extends Kernel
- {
- public function registerBundles()
- {
- $bundles = array(
- new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
- new Symfony\Bundle\SecurityBundle\SecurityBundle(),
- new Symfony\Bundle\TwigBundle\TwigBundle(),
- new Symfony\Bundle\MonologBundle\MonologBundle(),
- new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
- new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
- new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
- new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
- new FOS\UserBundle\FOSUserBundle(),
- new Http\HttplugBundle\HttplugBundle(),
- new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
- new Snc\RedisBundle\SncRedisBundle(),
- new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
- new Nelmio\SecurityBundle\NelmioSecurityBundle(),
- new Knp\Bundle\MenuBundle\KnpMenuBundle(),
- new Nelmio\CorsBundle\NelmioCorsBundle(),
- new Scheb\TwoFactorBundle\SchebTwoFactorBundle(),
- new Endroid\QrCodeBundle\EndroidQrCodeBundle(),
- new Packagist\WebBundle\PackagistWebBundle(),
- );
- if (in_array($this->getEnvironment(), array('dev', 'test'))) {
- $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
- $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
- }
- return $bundles;
- }
- public function registerContainerConfiguration(LoaderInterface $loader)
- {
- $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
- }
- }
|