annotate app/AppKernel.php @ 1:f38015048f48 tip

Added GPL
author Daniel Wolff
date Sat, 13 Feb 2016 20:43:38 +0100
parents 493bcb69166c
children
rev   line source
Daniel@0 1 <?php
Daniel@0 2
Daniel@0 3 use Symfony\Component\HttpKernel\Kernel;
Daniel@0 4 use Symfony\Component\Config\Loader\LoaderInterface;
Daniel@0 5 use Kachkaev\CountersBundle\KachkaevCountersBundle;
Daniel@0 6
Daniel@0 7 class AppKernel extends Kernel
Daniel@0 8 {
Daniel@0 9 public function registerBundles()
Daniel@0 10 {
Daniel@0 11 $bundles = array(
Daniel@0 12 new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
Daniel@0 13 new Symfony\Bundle\SecurityBundle\SecurityBundle(),
Daniel@0 14 new Symfony\Bundle\TwigBundle\TwigBundle(),
Daniel@0 15 new Symfony\Bundle\MonologBundle\MonologBundle(),
Daniel@0 16 new Symfony\Bundle\AsseticBundle\AsseticBundle(),
Daniel@0 17 new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
Daniel@0 18 new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
Daniel@0 19 new Kachkaev\CountersBundle\KachkaevCountersBundle(),
Daniel@0 20 new Kachkaev\AssetsVersionBundle\KachkaevAssetsVersionBundle(),
Daniel@0 21 new Kachkaev\JstmplBundle\JstmplBundle(),
Daniel@0 22 new DML\MainVisBundle\DMLMainVisBundle(),
Daniel@0 23 new DML\VendorAssetsBundle\DMLVendorAssetsBundle(),
Daniel@0 24 );
Daniel@0 25
Daniel@0 26 if (in_array($this->getEnvironment(), array('dev', 'test'))) {
Daniel@0 27 $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
Daniel@0 28 $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
Daniel@0 29 $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
Daniel@0 30 }
Daniel@0 31
Daniel@0 32 return $bundles;
Daniel@0 33 }
Daniel@0 34
Daniel@0 35 public function registerContainerConfiguration(LoaderInterface $loader)
Daniel@0 36 {
Daniel@0 37 $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
Daniel@0 38 }
Daniel@0 39 }