AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 4
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 11 2
A registerContainerConfiguration() 0 4 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
9
    public function registerBundles()
10
    {
11
        $bundles = array();
12
13
        if (in_array($this->getEnvironment(), array('test'))) {
14
            $bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
15
            $bundles[] = new HelloWordPl\SimpleEntityGeneratorBundle\HelloWordPlSimpleEntityGeneratorBundle();
16
        }
17
18
        return $bundles;
19
    }
20
21
    public function registerContainerConfiguration(LoaderInterface $loader)
22
    {
23
        $loader->load(__DIR__.'/config.yml');
24
    }
25
}
26