Completed
Push — master ( f20bc4...886a11 )
by Baptiste
02:52 queued 43s
created

InnmindNeo4jBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 7

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 1
lcom 0
cbo 7
dl 0
loc 36
ccs 24
cts 24
cp 1
rs 10
c 3
b 0
f 2

1 Method

Rating   Name   Duplication   Size   Complexity  
B build() 0 33 1
1
<?php
2
3
namespace Innmind\Neo4jBundle;
4
5
use Innmind\Neo4jBundle\DependencyInjection\Compiler\{
6
    RegisterTagMapPass,
7
    RegistrableServicePass,
8
    RegisterEntityFactoriesPass,
9
    RegisterMetadataFactoriesPass,
10
    InjectEntityDefinitionsPass
11
};
12
use Symfony\Component\{
13
    HttpKernel\Bundle\Bundle,
14
    DependencyInjection\ContainerBuilder
15
};
16
17
class InnmindNeo4jBundle extends Bundle
18
{
19 1
    public function build(ContainerBuilder $container)
20
    {
21 1
        parent::build($container);
22
23
        $container
24 1
            ->addCompilerPass(new RegisterTagMapPass(
25 1
                'innmind_neo4j.translator.result',
26 1
                'innmind_neo4j.translation.result'
27
            ))
28 1
            ->addCompilerPass(new RegistrableServicePass(
29 1
                'innmind_neo4j.generators',
30 1
                'innmind_neo4j.identity.generator'
31
            ))
32 1
            ->addCompilerPass(new RegistrableServicePass(
33 1
                'innmind_neo4j.repository_factory.configurator',
34 1
                'innmind_neo4j.repository'
35
            ))
36 1
            ->addCompilerPass(new RegisterEntityFactoriesPass)
37 1
            ->addCompilerPass(new RegisterTagMapPass(
38 1
                'innmind_neo4j.translator.identity_match',
39 1
                'innmind_neo4j.translation.identity_match'
40
            ))
41 1
            ->addCompilerPass(new RegisterTagMapPass(
42 1
                'innmind_neo4j.translator.match',
43 1
                'innmind_neo4j.translation.match'
44
            ))
45 1
            ->addCompilerPass(new RegisterTagMapPass(
46 1
                'innmind_neo4j.translator.specification',
47 1
                'innmind_neo4j.translation.specification'
48
            ))
49 1
            ->addCompilerPass(new RegisterMetadataFactoriesPass)
50 1
            ->addCompilerPass(new InjectEntityDefinitionsPass);
51 1
    }
52
}
53