ViewReferenceBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 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