LugUiBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Lug package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Lug\Bundle\UiBundle;
13
14
use Lug\Bundle\UiBundle\DependencyInjection\Compiler\RegisterMenuListenerPass;
15
use Lug\Bundle\UiBundle\DependencyInjection\Compiler\RegisterMenuPass;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use Symfony\Component\HttpKernel\Bundle\Bundle;
18
19
/**
20
 * @author GeLo <[email protected]>
21
 */
22
class LugUiBundle extends Bundle
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27 1
    public function build(ContainerBuilder $container)
28
    {
29
        $container
30 1
            ->addCompilerPass(new RegisterMenuListenerPass())
31 1
            ->addCompilerPass(new RegisterMenuPass());
32 1
    }
33
}
34