AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 11
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
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 Sleepness\UberTranslationBundle\SleepnessUberTranslationBundle(),
19
            new Sleepness\UberTranslationBundle\Tests\Fixtures\TestApp\TestBundle\TestBundle(), // required for testing environment
20
        );
21
22
        return $bundles;
23
    }
24
25
    public function registerContainerConfiguration(LoaderInterface $loader)
26
    {
27
        $loader->load(__DIR__ . '/config.yml');
28
    }
29
}
30