InnmindProvisionerBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
ccs 0
cts 12
cp 0
rs 9.4286
cc 1
eloc 8
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Innmind\ProvisionerBundle;
4
5
use Innmind\ProvisionerBundle\DependencyInjection\Compiler\LoadRabbitMQConfigPass;
6
use Innmind\ProvisionerBundle\DependencyInjection\Compiler\RegisterAlertersPass;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
10
11
class InnmindProvisionerBundle extends Bundle
12
{
13
    public function build(ContainerBuilder $container)
14
    {
15
        parent::build($container);
16
17
        $container
18
            ->addCompilerPass(
19
                new LoadRabbitMQConfigPass(),
20
                PassConfig::TYPE_BEFORE_REMOVING
21
            )
22
            ->addCompilerPass(
23
                new RegisterAlertersPass()
24
            );
25
    }
26
}
27