AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 10
nc 1
nop 0
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 Eo\AirbrakeBundle\EoAirbrakeBundle(),
19
            new SumoCoders\FrameworkErrorBundle\SumoCodersFrameworkErrorBundle(),
20
        );
21
22
        return $bundles;
23
    }
24
25
    public function registerContainerConfiguration(LoaderInterface $loader)
26
    {
27
        // We don't need that Environment stuff, just one config
28
        $loader->load(__DIR__ . '/config.yml');
29
    }
30
}
31