VelikonjaLabbyBundleTestAppKernel::getLogDir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
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 VelikonjaLabbyBundleTestAppKernel extends Kernel
7
{
8
    /**
9
     * @return array|\Symfony\Component\HttpKernel\Bundle\BundleInterface[]
10
     */
11
    public function registerBundles()
12
    {
13
        return array(
14
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
15
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
16
17
            new Velikonja\LabbyBundle\VelikonjaLabbyBundle(),
18
        );
19
    }
20
21
    /**
22
     * @param LoaderInterface $loader
23
     */
24
    public function registerContainerConfiguration(LoaderInterface $loader)
25
    {
26
        $loader->load(__DIR__ . '/config.yml');
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     *
32
     * @api
33
     */
34
    public function getCacheDir()
35
    {
36
        return __DIR__ . '/../../build/cache/' . $this->environment;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     *
42
     * @api
43
     */
44
    public function getLogDir()
45
    {
46
        return __DIR__ . '/../../build/logs';
47
    }
48
}
49