Passed
Push — master ( 7815e3...d45a7a )
by Pieter
04:53
created

TestKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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