AppKernel::registerContainerConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
class AppKernel extends Kernel
7
{
8
    public function registerBundles()
9
    {
10
        $bundles = array(
11
            // Dependencies
12
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
13
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
14
            new Symfony\Bundle\MonologBundle\MonologBundle(),
15
            new Symfony\Bundle\TwigBundle\TwigBundle(),
16
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
17
18
            new SumoCoders\FrameworkExampleBundle\SumoCodersFrameworkExampleBundle(),
19
        );
20
21
        return $bundles;
22
    }
23
24
    public function registerContainerConfiguration(LoaderInterface $loader)
25
    {
26
        // We don't need that Environment stuff, just one config
27
        $loader->load(__DIR__ . '/config.yml');
28
    }
29
}
30