AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 10

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 10
dl 0
loc 33
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 15 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the ONGR package.
5
 *
6
 * (c) NFQ Technologies UAB <[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\HttpKernel\Kernel;
14
15
/**
16
 * Class AppKernel.
17
 */
18
class AppKernel extends Kernel
19
{
20
    /**
21
     * {@inheritdoc}
22
     *
23
     * @return array|\Symfony\Component\HttpKernel\Bundle\BundleInterface[]
24
     */
25
    public function registerBundles()
26
    {
27
        return [
28
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
29
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
30
            new Symfony\Bundle\TwigBundle\TwigBundle(),
31
32
            new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
33
34
            new ONGR\ElasticsearchBundle\ONGRElasticsearchBundle(),
35
            new ONGR\FilterManagerBundle\ONGRFilterManagerBundle(),
36
            new ONGR\CookiesBundle\ONGRCookiesBundle(),
37
            new ONGR\SettingsBundle\ONGRSettingsBundle(),
38
        ];
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     *
44
     * @param LoaderInterface $loader
45
     */
46
    public function registerContainerConfiguration(LoaderInterface $loader)
47
    {
48
        $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
49
    }
50
}
51