SaulsComponentsBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
/**
3
 * This file is part of the sauls/components-bundle package.
4
 *
5
 * @author    Saulius Vaičeliūnas <[email protected]>
6
 * @link      http://saulius.vaiceliunas.lt
7
 * @copyright 2018
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Sauls\Bundle\Components;
14
15
use Sauls\Bundle\Components\DependencyInjection\Compiler\RegisterCollectionConvertersPass;
16
use Sauls\Bundle\Components\DependencyInjection\Compiler\RegisterWidgetsPass;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
use Symfony\Component\HttpKernel\Bundle\Bundle;
19
20
class SaulsComponentsBundle extends Bundle
21
{
22 7
    public function build(ContainerBuilder $container)
23
    {
24 7
        parent::build($container);
25
26 7
        $container->addCompilerPass(new RegisterCollectionConvertersPass());
27 7
        $container->addCompilerPass(new RegisterWidgetsPass());
28 7
    }
29
}
30