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

ViewReferenceBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 7
rs 9.4286
cc 1
eloc 4
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\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