AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 5
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 8 1
A registerContainerConfiguration() 0 4 1
A getProjectDir() 0 4 1
1
<?php
2
3
use Symfony\Component\Config\Loader\LoaderInterface;
4
use Symfony\Component\HttpKernel\Kernel;
5
6
/**
7
 * Class AppKernel.
8
 */
9
class AppKernel extends Kernel
10
{
11
    /**
12
     * @return array
13
     */
14
    public function registerBundles()
15
    {
16
        return [
17
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
18
            new Symfony\Bundle\TwigBundle\TwigBundle(),
19
            new Liip\MonitorBundle\LiipMonitorBundle(),
20
        ];
21
    }
22
23
    public function registerContainerConfiguration(LoaderInterface $loader)
24
    {
25
        $loader->load(__DIR__.'/config_'.$this->environment.'.yml');
26
    }
27
28
    public function getProjectDir()
29
    {
30
        return __DIR__;
31
    }
32
}
33