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

GpsLabDomainEventBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 9
ccs 0
cts 6
cp 0
rs 10
c 1
b 0
f 0

1 Method

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