AppKernel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 7

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 7
dl 0
loc 35
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 11 1
A registerContainerConfiguration() 0 4 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
1
<?php
2
3
/*
4
* This file is part of the OrbitaleCmsBundle package.
5
*
6
* (c) Alexandre Rock Ancelet <[email protected]>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
use Symfony\Component\Config\Loader\LoaderInterface;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\HttpKernel\Kernel;
15
16
class AppKernel extends Kernel
17
{
18
    public function registerBundles()
19
    {
20
        return [
21
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
22
            new Symfony\Bundle\TwigBundle\TwigBundle(),
23
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
24
25
            new Orbitale\Bundle\CmsBundle\OrbitaleCmsBundle(),
26
            new Orbitale\Bundle\CmsBundle\Tests\Fixtures\TestBundle\TestBundle(),
27
        ];
28
    }
29
30
    public function registerContainerConfiguration(LoaderInterface $loader)
31
    {
32
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yaml');
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getCacheDir()
39
    {
40
        return __DIR__.'/../../../build/cache/'.$this->getEnvironment();
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getLogDir()
47
    {
48
        return __DIR__.'/../../../build/kernel_logs/'.$this->getEnvironment();
49
    }
50
}
51