InnmindEventBusBundle::build()   A
last analyzed

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
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\EventBusBundle;
5
6
use Innmind\EventBusBundle\DependencyInjection\Compiler\{
7
    BuildEventBusStackPass,
8
    RegisterListenersPass
9
};
10
use Symfony\Component\{
11
    HttpKernel\Bundle\Bundle,
12
    DependencyInjection\ContainerBuilder
13
};
14
15
final class InnmindEventBusBundle extends Bundle
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20 2
    public function build(ContainerBuilder $container)
21
    {
22 2
        parent::build($container);
23
24
        $container
25 2
            ->addCompilerPass(new BuildEventBusStackPass)
26 2
            ->addCompilerPass(new RegisterListenersPass);
27 2
    }
28
}
29