Oliverde8PhpEtlBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Oliverde8\PhpEtlBundle;
4
5
use Oliverde8\PhpEtlBundle\DependencyInjection\Compiler\ChainBuilderCompiler;
6
use Oliverde8\PhpEtlBundle\DependencyInjection\Compiler\ChainCompiler;
7
use Oliverde8\PhpEtlBundle\DependencyInjection\Compiler\ChainParameterCompiler;
8
use Oliverde8\PhpEtlBundle\DependencyInjection\Compiler\RuleEngineCompiler;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\HttpKernel\Bundle\Bundle;
11
12
class Oliverde8PhpEtlBundle extends Bundle
13
{
14
    /**
15
     * @param ContainerBuilder $container
16
     */
17
    public function build(ContainerBuilder $container)
18
    {
19
        parent::build($container);
20
21
        $container->addCompilerPass(new ChainBuilderCompiler());
22
        $container->addCompilerPass(new RuleEngineCompiler());
23
        $container->addCompilerPass(new ChainParameterCompiler());
24
        $container->addCompilerPass(new ChainCompiler());
25
    }
26
27
}
28