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

AppKernel::registerContainerConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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