Completed
Pull Request — master (#290)
by Leny
08:38
created

ViewReferenceBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 4
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 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\ViewReferenceTransformerCompilerPass;
9
10
class ViewReferenceBundle extends Bundle
11
{
12
    /**
13
     * Build bundle.
14
     *
15
     * @param ContainerBuilder $container
16
     */
17
    public function build(ContainerBuilder $container)
18
    {
19
        parent::build($container);
20
21
        $container->addCompilerPass(new ViewReferenceBuilderCompilerPass());
22
        $container->addCompilerPass(new ViewReferenceTransformerCompilerPass());
23
    }
24
}
25