Test Failed
Pull Request — release/3.x (#37)
by
unknown
07:22
created

ZichtUrlBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 1
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Gerard van Helden <[email protected]>
4
 * @copyright Zicht Online <http://zicht.nl>
5
 */
6
7
namespace Zicht\Bundle\UrlBundle;
8
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\HttpKernel\Bundle\Bundle;
11
12
/**
13
 * Bundle instance for zicht/url-bundle
14
 */
15
class ZichtUrlBundle extends Bundle
16
{
17
    /**
18
     * @{inheritDoc}
19
     */
20
    public function build(ContainerBuilder $container)
21
    {
22
        parent::build($container);
23
24
        $container->addCompilerPass(new DependencyInjection\Compiler\UrlProviderPass());
25
        $container->addCompilerPass(new DependencyInjection\Compiler\ReplaceUrlProviderServicePass());
0 ignored issues
show
Deprecated Code introduced by
The class Zicht\Bundle\UrlBundle\D...eUrlProviderServicePass has been deprecated: Should no longer be used. Remains here for BC. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

25
        $container->addCompilerPass(/** @scrutinizer ignore-deprecated */ new DependencyInjection\Compiler\ReplaceUrlProviderServicePass());
Loading history...
26
        $container->addCompilerPass(new DependencyInjection\Compiler\CachePass());
27
        $container->addCompilerPass(new DependencyInjection\Compiler\UrlMapperPass());
28
    }
29
}
30