VictoireWidgetBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

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 4
nc 1
nop 1
1
<?php
2
3
namespace Victoire\Bundle\WidgetBundle;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\Bundle\Bundle;
7
use Victoire\Bundle\WidgetBundle\DependencyInjection\Compiler\WidgetContentResolverPass;
8
use Victoire\Bundle\WidgetBundle\DependencyInjection\Compiler\WidgetItemPass;
9
10
class VictoireWidgetBundle extends Bundle
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
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 WidgetContentResolverPass());
22
        //get widgetItems
23
        $container->addCompilerPass(new WidgetItemPass());
24
    }
25
}
26