Completed
Push — master ( 705569...50fbec )
by dan
02:16
created

AppKernel::getLogDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
class AppKernel extends Kernel
7
{
8
    public function registerBundles()
9
    {
10
        $bundles = [];
11
12
        if (in_array($this->getEnvironment(), ['test'])) {
13
            $bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
14
            $bundles[] = new Symfony\Bundle\TwigBundle\TwigBundle();
15
            $bundles[] = new Symfony\Bundle\MonologBundle\MonologBundle();
16
            $bundles[] = new Doctrine\Bundle\DoctrineBundle\DoctrineBundle();
17
            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
18
            $bundles[] = new IrishDan\NotificationBundle\NotificationBundle();
19
        }
20
21
        return $bundles;
22
    }
23
24
    public function registerContainerConfiguration(LoaderInterface $loader)
25
    {
26
        $loader->load(__DIR__ . '/config_test.yml');
27
    }
28
29
    public function getLogDir()
30
    {
31
        return dirname(__DIR__) . '/logs';
32
    }
33
}