Completed
Pull Request — develop (#39)
by Axel
03:13
created

TestKernel::registerContainerConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
class TestKernel extends Kernel
7
{
8
    public function registerBundles()
9
    {
10
        $bundles = array(
11
            // Dependencies
12
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
13
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
14
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
15
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
16
            new Symfony\Bundle\TwigBundle\TwigBundle(),
17
            new Symfony\Bundle\DebugBundle\DebugBundle(),
18
            new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(),
19
            new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(),
20
            new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(),
21
            new Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),
22
            new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
23
            // My Bundle to test
24
            new Developtech\AgilityBundle\DeveloptechAgilityBundle(),
25
        );
26
27
        return $bundles;
28
    }
29
30
    public function registerContainerConfiguration(LoaderInterface $loader)
31
    {
32
        // We don't need that Environment stuff, just one config
33
        $loader->load(__DIR__.'/config.yml');
34
    }
35
}
36