ZichtUrlBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 4
Bugs 2 Features 1
Metric Value
cc 1
eloc 5
c 4
b 2
f 1
nc 1
nop 1
dl 0
loc 8
ccs 6
cts 6
cp 1
crap 1
rs 10
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 1
    public function build(ContainerBuilder $container)
21
    {
22 1
        parent::build($container);
23
24 1
        $container->addCompilerPass(new DependencyInjection\Compiler\UrlProviderPass());
25 1
        $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 1
        $container->addCompilerPass(new DependencyInjection\Compiler\CachePass());
27 1
        $container->addCompilerPass(new DependencyInjection\Compiler\UrlMapperPass());
28 1
    }
29
}
30