Completed
Push — master ( 62452e...4a089c )
by Kevin
22s queued 10s
created

AppKernel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 5
dl 0
loc 28
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\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
        return [
17
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
18
            new Symfony\Bundle\TwigBundle\TwigBundle(),
19
            new Liip\MonitorBundle\LiipMonitorBundle(),
20
        ];
21
    }
22
23
    /**
24
     * {@inheritDoc}
25
     */
26
    public function registerContainerConfiguration(LoaderInterface $loader)
27
    {
28
        $loader->load(__DIR__ . '/config_' . $this->environment . '.yml');
29
    }
30
31
    public function getProjectDir()
32
    {
33
        return __DIR__;
34
    }
35
36
}
37