Completed
Push — master ( e5d625...75cd3f )
by Nikola
04:18
created

ExchangeRateBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 6

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 6
dl 0
loc 19
ccs 0
cts 12
cp 0
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\RepositoryCompilerPass;
14
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\CompilerPass\SourcesCompilerPass;
15
use RunOpenCode\Bundle\ExchangeRate\DependencyInjection\Extension;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
/**
20
 * Class ExchangeRateBundle
21
 *
22
 * A Bundle.
23
 *
24
 * @package RunOpenCode\Bundle\ExchangeRate
25
 */
26
class ExchangeRateBundle extends Bundle
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getContainerExtension()
32
    {
33
        return new Extension();
34
    }
35
36
    public function build(ContainerBuilder $container)
37
    {
38
        $container
39
            ->addCompilerPass(new RepositoryCompilerPass())
40
            ->addCompilerPass(new SourcesCompilerPass())
41
            ->addCompilerPass(new ProcessorsCompilerPass())
42
            ;
43
    }
44
}
45