AppKernel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 7 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
/**
4
 * OpenExchangeRates Bundle for Symfony2
5
 * OpenExchangeRates Bundle for Symfony2
6
 *
7
 * @author Marc Morera <[email protected]>
8
 * @since 2013
9
 */
10
11
use Symfony\Component\HttpKernel\Kernel;
12
use Symfony\Component\Config\Loader\LoaderInterface;
13
14
/**
15
 * AppKernel for testing
16
 */
17
class AppKernel extends Kernel
18
{
19
    /**
20
     * Register OpenExchangeRatesBundle
21
     */
22
    public function registerBundles()
23
    {
24
        return array(
25
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
26
            new Mrzard\OpenExchangeRatesBundle\OpenExchangeRatesBundle(),
27
        );
28
    }
29
30
    /**
31
     * Setup configuration file.
32
     */
33
    public function registerContainerConfiguration(LoaderInterface $loader)
34
    {
35
        $loader->load(dirname(__FILE__) . '/config.yml');
36
    }
37
}
38