AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 7

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 7
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 12 1
A registerContainerConfiguration() 0 4 1
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
}