CompilerPass   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 8
c 2
b 0
f 0
dl 0
loc 17
rs 10
ccs 8
cts 8
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 12 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