Completed
Pull Request — master (#145)
by Thanos
04:23
created

AppKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 4
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 7 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
        return [
17
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
18
            new Symfony\Bundle\TwigBundle\TwigBundle(),
19
        ];
20
    }
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    public function registerContainerConfiguration(LoaderInterface $loader)
26
    {
27
        $loader->load(__DIR__ . '/config_' . $this->environment . '.yml');
28
    }
29
}
30