AppKernel::registerContainerConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
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
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