Completed
Push — master ( 651cee...b2acd3 )
by Axel
05:20 queued 02:47
created

TestKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 14

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 14
dl 0
loc 30
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 21 1
A registerContainerConfiguration() 0 5 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