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

TestKernel::registerContainerConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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