VelikonjaLabbyBundleTestAppKernel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 1
cbo 5
dl 0
loc 43
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 9 1
A registerContainerConfiguration() 0 4 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
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