AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 10

Test Coverage

Coverage 100%

Importance

Changes 6
Bugs 0 Features 4
Metric Value
wmc 2
c 6
b 0
f 4
lcom 0
cbo 10
dl 0
loc 23
ccs 14
cts 14
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 15 1
A registerContainerConfiguration() 0 4 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