DoyoModularBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
/*
4
 * This file is part of the ModularBundle project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Bundle\Modular;
15
16
use Doyo\Bundle\Modular\Compiler\ServiceConfiguratorPass;
17
use Doyo\Bundle\Modular\Compiler\ValidationConfiguratorPass;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
class DoyoModularBundle extends Bundle
22
{
23
    public function build(ContainerBuilder $container): void
24
    {
25
        parent::build($container);
26
        $container->addCompilerPass(new ServiceConfiguratorPass());
27
        $container->addCompilerPass(new ValidationConfiguratorPass());
28
    }
29
}
30