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

FixRouterPass::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 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