comparison app/AppKernel.php @ 0:493bcb69166c

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