InnmindHomeostasisBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\HomeostasisBundle;
5
6
use Innmind\HomeostasisBundle\DependencyInjection\Compiler\{
7
    ConfigureFactorsPass,
8
    BuildRegulatorStackPass,
9
    RegisterFactorsPass
10
};
11
use Symfony\Component\{
12
    HttpKernel\Bundle\Bundle,
13
    DependencyInjection\ContainerBuilder
14
};
15
16
final class InnmindHomeostasisBundle extends Bundle
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21 2
    public function build(ContainerBuilder $container)
22
    {
23
        $container
24 2
            ->addCompilerPass(new ConfigureFactorsPass)
25 2
            ->addCompilerPass(new BuildRegulatorStackPass)
26 2
            ->addCompilerPass(new RegisterFactorsPass);
27 2
    }
28
}
29