Completed
Push — master ( 97c96f...884ea1 )
by Peter
09:54
created

GpsLabDomainEventBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 9
ccs 5
cts 5
cp 1
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 1
    public function build(ContainerBuilder $container)
19
    {
20 1
        parent::build($container);
21 1
        $container->addCompilerPass(new NamedEventListenerPass());
22 1
        $container->addCompilerPass(new VoterListenerPass());
23 1
    }
24
}
25