EventDispatcherDecoratorCompilerPass   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 7 1
1
<?php
2
3
namespace Itkg\DelayEventBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
/**
9
 * class EventDispatcherDecoratorCompilerPass 
10
 */
11
class EventDispatcherDecoratorCompilerPass implements CompilerPassInterface
12
{
13
    /**
14
     * {@inheritDoc}
15
     */
16
    public function process(ContainerBuilder $container)
17
    {
18
        $definition = $container->findDefinition('event_dispatcher');
19
        $definition->setPublic(false);
20
        $container->setDefinition('itkg_delay_event.event_dispatcher.parent', $definition);
21
        $container->setAlias('event_dispatcher', 'itkg_delay_event.event_dispatcher');
22
    }
23
}
24