TacticsCommandBusBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Tactics\CommandBusBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
8
use Tactics\CommandBusBundle\DependencyInjection\CommandHandlerPass;
9
10
/**
11
 * Class TacticsCommandBusBundle
12
 * @package Tactics\CommandBusBundle
13
 */
14
class TacticsCommandBusBundle extends Bundle
15
{
16
    /**
17
     * @param ContainerBuilder $container
18
     */
19
    public function build(ContainerBuilder $container)
20
    {
21
        parent::build($container);
22
23
        $container->addCompilerPass(new CommandHandlerPass());
24
    }
25
}
26