TestKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 21
rs 10
c 2
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A registerContainerConfiguration() 0 4 1
A registerBundles() 0 5 1
A build() 0 5 1
1
<?php
2
3
use Avoran\RapidoBundle\Config\Compiler\CompilerPass;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Kernel;
7
8
class TestKernel extends Kernel
9
{
10
    public function registerBundles()
11
    {
12
        return [
13
            new Avoran\RapidoBundle\RapidoBundle(),
14
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle()
15
        ];
16
    }
17
18
    public function registerContainerConfiguration(LoaderInterface $loader)
19
    {
20
        new \PDO('sqlite:' . __DIR__ . '/sqlite.db');
21
        $loader->load(__DIR__ . '/config.yml');
22
    }
23
24
    protected function build(ContainerBuilder $container)
25
    {
26
        parent::build($container);
27
28
        $container->addCompilerPass(new CompilerPass());
29
    }
30
}
31