Passed
Branch master (74c56f)
by Fabien
04:11
created

AppKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 7 1
A registerContainerConfiguration() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the FabienCrassat\CurriculumVitaeBundle Symfony bundle.
5
 *
6
 * (c) Fabien Crassat <[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\HttpKernel\Kernel;
13
use Symfony\Component\Config\Loader\LoaderInterface;
14
15
class AppKernel extends Kernel
16
{
17
    public function registerBundles()
18
    {
19
        return [
20
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
21
            new Symfony\Bundle\TwigBundle\TwigBundle(),
22
            new Netinfluence\SecureDisplayBundle\NetinfluenceSecureDisplayBundle(),
23
            new FabienCrassat\CurriculumVitaeBundle\FabienCrassatCurriculumVitaeBundle()
24
        ];
25
    }
26
27
    public function registerContainerConfiguration(LoaderInterface $loader)
28
    {
29
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
30
    }
31
}
32