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