VictoireWidgetBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
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\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