Completed
Push — master ( 7048f2...dbeee8 )
by Sander
35:14 queued 17:10
created

FixRouterPass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 6 1
1
<?php
2
3
namespace Kunstmaan\NodeBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
class FixRouterPass implements CompilerPassInterface
9
{
10
    public function process(ContainerBuilder $container)
11
    {
12
        // Mark the router alias specifically as public.
13
        // This compiler pass can be removed when symfony-cmf/routing-bundle is upgraded to >=2.1.0
14
        $container->getAlias('router')->setPublic(true);
15
    }
16
}
17