AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 12 2
A registerContainerConfiguration() 0 4 1
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
}