ReplaceUrlProviderServicePass   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 4 1
1
<?php
2
/**
3
 * @author Gerard van Helden <[email protected]>
4
 * @copyright Zicht Online <http://zicht.nl>
5
 */
6
namespace Zicht\Bundle\UrlBundle\DependencyInjection\Compiler;
7
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
10
11
/**
12
 * Originally replaced the regular provider with a decorating one.
13
 *
14
 * @see ZichtUrlExtension::load
15
 * @deprecated Should no longer be used. Remains here for BC.
16
 */
17
class ReplaceUrlProviderServicePass implements CompilerPassInterface
18
{
19
    /**
20
     * @{inheritDoc}
21
     */
22
    public function process(ContainerBuilder $container)
23
    {
24
        // TODO This is here for BC, to be removed whenever the BC for the ProviderDecorator for aliasing is removed.
25
        $container->setAlias('zicht_url.provider.real', 'zicht_url.provider.delegator');
26
    }
27
}
28