AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 1

Importance

Changes 6
Bugs 0 Features 4
Metric Value
c 6
b 0
f 4
dl 0
loc 15
ccs 11
cts 11
cp 1
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
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