ZichtUrlBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 2 Features 1
Metric Value
eloc 6
c 4
b 2
f 1
dl 0
loc 13
ccs 6
cts 6
cp 1
rs 10
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 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