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

ZichtUrlBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
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