AppKernel::registerBundles()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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