InnmindCommandBusBundle   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
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 4
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\CommandBusBundle;
5
6
use Innmind\CommandBusBundle\DependencyInjection\Compiler\{
7
    BuildCommandBusStackPass,
8
    RegisterHandlersPass
9
};
10
use Symfony\Component\{
11
    HttpKernel\Bundle\Bundle,
12
    DependencyInjection\ContainerBuilder
13
};
14
15
final class InnmindCommandBusBundle 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 BuildCommandBusStackPass)
26 2
            ->addCompilerPass(new RegisterHandlersPass);
27 2
    }
28
}
29