| 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 |  |  |  |