AppKernel::registerContainerConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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 54
    public function registerBundles()
9
    {
10
        $bundles = array(
11 54
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
12 54
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
13 54
            new \Symfony\Bundle\TwigBundle\TwigBundle(),
14 54
            new \JMS\SerializerBundle\JMSSerializerBundle(),
15 54
            new \FOS\RestBundle\FOSRestBundle(),
16 54
            new \Tpg\ExtjsBundle\TpgExtjsBundle(),
17 54
            new \Test\TestBundle\TestTestBundle(),
18 54
            new \Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),
19 54
        );
20
21 54
        return $bundles;
22
    }
23
24 1
    public function registerContainerConfiguration(LoaderInterface $loader)
25
    {
26 1
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
27 1
    }
28
}
29