AppKernel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 8 2
A registerContainerConfiguration() 0 3 1
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
class AppKernel extends Kernel
7
{
8
    public function registerBundles()
9
    {
10
        $bundles = [];
11
        if (in_array($this->getEnvironment(), ['test'])) {
12
            $bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
13
            $bundles[] = new NV\RequestLimitBundle\NVRequestLimitBundle();
14
        }
15
        return $bundles;
16
    }
17
18
    public function registerContainerConfiguration(LoaderInterface $loader)
19
    {
20
        $loader->load(__DIR__.'/config.yml');
21
    }
22
}
23