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

ExchangeRateBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 2
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