ViewReferenceBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
1
<?php
2
3
namespace Victoire\Bundle\ViewReferenceBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Victoire\Bundle\ViewReferenceBundle\DependencyInjection\Compiler\ViewReferenceBuilderCompilerPass;
8
use Victoire\Bundle\ViewReferenceBundle\DependencyInjection\Compiler\ViewReferenceConnectorCompilerPass;
9
use Victoire\Bundle\ViewReferenceBundle\DependencyInjection\Compiler\ViewReferenceTransformerCompilerPass;
10
11
class ViewReferenceBundle extends Bundle
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
12
{
13
    /**
14
     * Build bundle.
15
     *
16
     * @param ContainerBuilder $container
17
     */
18
    public function build(ContainerBuilder $container)
19
    {
20
        parent::build($container);
21
22
        $container->addCompilerPass(new ViewReferenceBuilderCompilerPass());
23
        $container->addCompilerPass(new ViewReferenceTransformerCompilerPass());
24
        $container->addCompilerPass(new ViewReferenceConnectorCompilerPass());
25
    }
26
}
27