InnmindHomeostasisBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 5
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 7 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