Completed
Push — master ( d83d85...91afcf )
by Wachter
07:09 queued 01:45
created

TestKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 6 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
use Symfony\Component\Config\Loader\LoaderInterface;
4
use Symfony\Component\HttpKernel\Kernel;
5
use Task\TaskBundle\TaskBundle;
6
7
class TestKernel extends Kernel
8
{
9
    const STORAGE_VAR_NAME = 'STORAGE';
10
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function registerBundles()
15
    {
16
        return [
17
            new TaskBundle(),
18
        ];
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function registerContainerConfiguration(LoaderInterface $loader)
25
    {
26
        $loader->load(sprintf('%s/config/config.%s.yml', __DIR__, getenv(self::STORAGE_VAR_NAME)));
27
    }
28
}
29