InnmindRestBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 6

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 19 1
1
<?php
2
3
namespace Innmind\RestBundle;
4
5
use Innmind\RestBundle\DependencyInjection\Compiler\RegisterClientDecodersPass;
6
use Innmind\Rest\Server\DependencyInjection\Compiler\RegisterFormatPass;
7
use Innmind\Rest\Server\DependencyInjection\Compiler\RegisterStoragePass;
8
use Innmind\Rest\Server\DependencyInjection\Compiler\RegisterDefinitionCompilerPass;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
use Symfony\Component\DependencyInjection\ContainerBuilder;
11
12
class InnmindRestBundle extends Bundle
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 2
    public function build(ContainerBuilder $container)
18
    {
19 2
        parent::build($container);
20
21
        $container
22 2
            ->addCompilerPass(new RegisterClientDecodersPass)
23 2
            ->addCompilerPass(new RegisterFormatPass(
24 2
                'innmind_rest.server.formats',
25
                'innmind_rest.server.format'
26 2
            ))
27 2
            ->addCompilerPass(new RegisterStoragePass(
28 2
                'innmind_rest.server.storages',
29
                'innmind_rest.server.storage'
30 2
            ))
31 2
            ->addCompilerPass(new RegisterDefinitionCompilerPass(
32 2
                'innmind_rest.server.definition_compiler',
33
                'innmind_rest.server.definition_pass'
34 2
            ));
35 2
    }
36
}
37