AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 9

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 9
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 16 1
A registerContainerConfiguration() 0 5 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 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