AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 9
Metric Value
wmc 2
lcom 0
cbo 9
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 14 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
            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
}