AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 7
nc 2
nop 0
1
<?php
2
3
namespace Decline\TransformatBundle\Tests\App;
4
5
use Decline\TransformatBundle\DeclineTransformatBundle;
6
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
7
use Symfony\Bundle\TwigBundle\TwigBundle;
8
use Symfony\Component\Config\Loader\LoaderInterface;
9
use Symfony\Component\HttpKernel\Kernel;
10
11
/**
12
 * Class AppKernel
13
 * @package Decline\TransformatBundle\Tests\App
14
 */
15
class AppKernel extends Kernel
16
{
17
    public function registerBundles()
18
    {
19
        $bundles = array();
20
21
        if ('test' === $this->getEnvironment()) {
22
            $bundles[] = new FrameworkBundle();
23
            $bundles[] = new TwigBundle();
24
            $bundles[] = new DeclineTransformatBundle();
25
        }
26
27
        return $bundles;
28
    }
29
30
    public function registerContainerConfiguration(LoaderInterface $loader)
31
    {
32
        $loader->load(__DIR__ . '/config/config.yml');
33
    }
34
}