AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
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 33
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 10 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
use Itkg\TranslationBundle\ItkgTranslationBundle;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
6
use Symfony\Component\HttpKernel\Kernel;
7
8
/**
9
 * Class AppKernel
10
 */
11
class AppKernel extends Kernel
12
{
13
14
    /**
15
     * Returns an array of bundles to register.
16
     *
17
     * @return BundleInterface[] An array of bundle instances.
18
     *
19
     * @api
20
     */
21
    public function registerBundles()
22
    {
23
        return array(
24
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
25
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
26
            new Symfony\Bundle\TwigBundle\TwigBundle(),
27
            new Symfony\Bundle\MonologBundle\MonologBundle(),
28
            new ItkgTranslationBundle()
29
        );
30
    }
31
32
    /**
33
     * Loads the container configuration.
34
     *
35
     * @param LoaderInterface $loader A LoaderInterface instance
36
     *
37
     * @api
38
     */
39
    public function registerContainerConfiguration(LoaderInterface $loader)
40
    {
41
        $loader->load(__DIR__.'/config.yml');
42
    }
43
}
44