| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | private function addRegisterMappingsPass(ContainerBuilder $container) |
||
| 35 | { |
||
| 36 | $mappings = [ |
||
| 37 | realpath( |
||
| 38 | __DIR__.'/Resources/config/doctrine-mapping' |
||
| 39 | ) => 'Eloyekunle\PermissionsBundle\Model', |
||
| 40 | ]; |
||
| 41 | if (class_exists( |
||
| 42 | 'Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass' |
||
| 43 | )) { |
||
| 44 | $container->addCompilerPass( |
||
| 45 | DoctrineOrmMappingsPass::createXmlMappingDriver( |
||
| 46 | $mappings, |
||
| 47 | ['eloyekunle_permissions.model_manager_name'], |
||
| 48 | 'eloyekunle_permissions.backend_type_orm' |
||
| 49 | ) |
||
| 54 |