AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 8
Metric Value
wmc 2
lcom 0
cbo 8
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 13 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
/**
7
 * AppKernel to execute PHPUnit test classes that inherit KernelTestCase
8
 *
9
 * @author Alexandr Zhulev <[email protected]>
10
 */
11
class AppKernel extends Kernel
12
{
13
    public function registerBundles()
14
    {
15
        $bundles = array(
16
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
17
            new Symfony\Bundle\TwigBundle\TwigBundle(),
18
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
19
            new Sleepness\UberTranslationAdminBundle\SleepnessUberTranslationAdminBundle(),
20
            new Sleepness\UberTranslationBundle\SleepnessUberTranslationBundle(),
21
            new Sleepness\UberTranslationBundle\Tests\Fixtures\TestApp\TestBundle\TestBundle(), // required for testing environment
22
        );
23
24
        return $bundles;
25
    }
26
27
    public function registerContainerConfiguration(LoaderInterface $loader)
28
    {
29
        $loader->load(__DIR__ . '/config.yml');
30
    }
31
}
32