Completed
Push — master ( f50842...f11675 )
by Novikov
02:16
created

AppKernel::registerBundles()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 8
rs 9.4285
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