Completed
Push — master ( caead5...f1379b )
by Peter
06:59
created

GpsLabDomainEventBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * GpsLab component.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2016, Peter Gribanov
7
 * @license   http://opensource.org/licenses/MIT
8
 */
9
namespace GpsLab\Bundle\DomainEvent;
10
11
use GpsLab\Bundle\DomainEvent\DependencyInjection\Compiler\NamedEventListenerPass;
12
use GpsLab\Bundle\DomainEvent\DependencyInjection\Compiler\VoterListenerPass;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
16
class GpsLabDomainEventBundle extends Bundle
17
{
18
    public function build(ContainerBuilder $container)
19
    {
20
        parent::build($container);
21
        $container->addCompilerPass(new NamedEventListenerPass());
22
        $container->addCompilerPass(new VoterListenerPass());
23
    }
24
}
25