AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 6
nc 2
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
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