InnmindEventBusBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

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