AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 14
rs 9.4286
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
/**
7
 * Class AppKernel
8
 */
9
class AppKernel extends Kernel
10
{
11
    /**
12
     * @return array
13
     */
14
    public function registerBundles()
15
    {
16
        $bundles = array(
17
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
18
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
19
            new Symfony\Bundle\TwigBundle\TwigBundle(),
20
            new Symfony\Bundle\AsseticBundle\AsseticBundle(),
21
            new Evheniy\JqueryBundle\JqueryBundle(),
22
            new Evheniy\HTML5CacheBundle\HTML5CacheBundle(),
23
            new Evheniy\HTML5VertiTemplateBundle\HTML5VertiTemplateBundle()
24
        );
25
26
        return $bundles;
27
    }
28
29
    /**
30
     * @param LoaderInterface $loader
31
     */
32
    public function registerContainerConfiguration(LoaderInterface $loader)
33
    {
34
        $loader->load(__DIR__ . '/config_' . $this->getEnvironment() . '.yml');
35
    }
36
}