| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | private function addMappingsPass() |
||
| 35 | { |
||
| 36 | $ormCompilerClass = 'Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass'; |
||
| 37 | |||
| 38 | $mappings = array( |
||
| 39 | realpath(__DIR__.'/Resources/config/mapping/ORM') => 'Majora\Component\OAuth\Entity', |
||
| 40 | ); |
||
| 41 | |||
| 42 | if (class_exists($ormCompilerClass)) { |
||
| 43 | $this->container->addCompilerPass(DoctrineOrmMappingsPass::createYamlMappingDriver($mappings, array(), 'majora_oauth_server.driver.orm')); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 |