CompilerPass::process()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 12
rs 10
ccs 8
cts 8
cp 1
crap 1
1
<?php
2
3
namespace Palmtree\CanonicalUrlBundle\DependencyInjection\Compiler;
4
5
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
class CompilerPass implements CompilerPassInterface
9
{
10
    /**
11
     * @inheritDoc
12
     */
13 1
    public function process(ContainerBuilder $container)
14
    {
15 1
        $bundleConfig = $container->getParameter('palmtree_canonical_url.config');
16
17 1
        $definition = $container->getDefinition('palmtree_canonical_url.url_generator');
18 1
        $definition->addArgument($bundleConfig);
19
20 1
        $definition = $container->getDefinition('palmtree_canonical_url.request_listener');
21 1
        $definition->addArgument($bundleConfig);
22
23 1
        $definition = $container->getDefinition('palmtree_canonical_url.exception_listener');
24 1
        $definition->addArgument($bundleConfig);
25 1
    }
26
}
27