Completed
Push — master ( 9d81b9...1cdf8a )
by Nikola
12:36
created

ExchangeRateBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 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 1
    public function getContainerExtension()
32
    {
33 1
        return new Extension();
34
    }
35
36 1
    public function build(ContainerBuilder $container)
37
    {
38
        $container
39 1
            ->addCompilerPass(new RepositoryCompilerPass())
40 1
            ->addCompilerPass(new SourcesCompilerPass())
41 1
            ->addCompilerPass(new ProcessorsCompilerPass())
42
            ;
43 1
    }
44
}
45