ExchangeRateBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 7

Test Coverage

Coverage 25%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 7
dl 0
loc 19
ccs 2
cts 8
cp 0.25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 4 1
A build() 0 8 1
1
<?php
2
/*
3
 * This file is part of the Exchange Rate Bundle, an RunOpenCode project.
4
 *
5
 * (c) 2017 RunOpenCode
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace RunOpenCode\Bundle\ExchangeRate;
11
12
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\CompilerPass\ProcessorsCompilerPass;
13
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\CompilerPass\RatesConfigurationRegistryCompilerPass;
14
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\CompilerPass\RepositoryCompilerPass;
15
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\CompilerPass\SourcesCompilerPass;
16
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\Extension;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
use Symfony\Component\HttpKernel\Bundle\Bundle;
19
20
/**
21
 * Class ExchangeRateBundle
22
 *
23
 * A Bundle.
24
 *
25
 * @package RunOpenCode\Bundle\ExchangeRate
26
 */
27
class ExchangeRateBundle extends Bundle
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32 1
    public function getContainerExtension()
33
    {
34 1
        return new Extension();
35
    }
36
37
    public function build(ContainerBuilder $container)
38
    {
39
        $container
40
            ->addCompilerPass(new RepositoryCompilerPass())
41
            ->addCompilerPass(new SourcesCompilerPass())
42
            ->addCompilerPass(new ProcessorsCompilerPass())
43
            ->addCompilerPass(new RatesConfigurationRegistryCompilerPass());
44
    }
45
}
46