AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 13
rs 9.4286
cc 1
eloc 9
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 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