Completed
Push — develop ( fc6ffb...186fbd )
by Baptiste
02:13
created

InnmindRestServerBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Rest\ServerBundle;
5
6
use Innmind\Rest\ServerBundle\DependencyInjection\Compiler\{
7
    RegisterDefinitionFilesPass,
8
    RegisterGatewaysPass
9
};
10
use Symfony\Component\{
11
    HttpKernel\Bundle\Bundle,
12
    DependencyInjection\ContainerBuilder
13
};
14
15
final class InnmindRestServerBundle extends Bundle
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20 2
    public function build(ContainerBuilder $container)
21
    {
22 2
        parent::build($container);
23
24
        $container
25 2
            ->addCompilerPass(new RegisterDefinitionFilesPass)
26 2
            ->addCompilerPass(new RegisterGatewaysPass);
27 2
    }
28
}
29