InnmindProvisionerBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 16
ccs 0
cts 12
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 13 1
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