Daniel@0: <?php
Daniel@0: 
Daniel@0: use Symfony\Component\HttpKernel\Kernel;
Daniel@0: use Symfony\Component\Config\Loader\LoaderInterface;
Daniel@0: use Kachkaev\CountersBundle\KachkaevCountersBundle;
Daniel@0: 
Daniel@0: class AppKernel extends Kernel
Daniel@0: {
Daniel@0:     public function registerBundles()
Daniel@0:     {
Daniel@0:         $bundles = array(
Daniel@0:             new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
Daniel@0:             new Symfony\Bundle\SecurityBundle\SecurityBundle(),
Daniel@0:             new Symfony\Bundle\TwigBundle\TwigBundle(),
Daniel@0:             new Symfony\Bundle\MonologBundle\MonologBundle(),
Daniel@0:             new Symfony\Bundle\AsseticBundle\AsseticBundle(),
Daniel@0:             new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
Daniel@0:             new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
Daniel@0:             new Kachkaev\CountersBundle\KachkaevCountersBundle(),
Daniel@0:             new Kachkaev\AssetsVersionBundle\KachkaevAssetsVersionBundle(),
Daniel@0:             new Kachkaev\JstmplBundle\JstmplBundle(),
Daniel@0:             new DML\MainVisBundle\DMLMainVisBundle(),
Daniel@0:             new DML\VendorAssetsBundle\DMLVendorAssetsBundle(),
Daniel@0:         );
Daniel@0: 
Daniel@0:         if (in_array($this->getEnvironment(), array('dev', 'test'))) {
Daniel@0:             $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
Daniel@0:             $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
Daniel@0:             $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
Daniel@0:         }
Daniel@0: 
Daniel@0:         return $bundles;
Daniel@0:     }
Daniel@0: 
Daniel@0:     public function registerContainerConfiguration(LoaderInterface $loader)
Daniel@0:     {
Daniel@0:         $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
Daniel@0:     }
Daniel@0: }