ReplaceUrlProviderServicePass::process()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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