AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
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