AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 8
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
        );
23
24
        return $bundles;
25
    }
26
27
    /**
28
     * @param LoaderInterface $loader
29
     */
30
    public function registerContainerConfiguration(LoaderInterface $loader)
31
    {
32
        $loader->load(__DIR__ . '/config_' . $this->getEnvironment() . '.yml');
33
    }
34
}