| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | private function addRegisterMappingsPass(ContainerBuilder $container): void |
||
| 27 | { |
||
| 28 | /* $mappings = array( |
||
| 29 | realpath(__DIR__.'/Resources/config/doctrine-mapping') => __NAMESPACE__ . '\\Entity', |
||
| 30 | ); */ |
||
| 31 | if (class_exists(DoctrineOrmMappingsPass::class)) { |
||
| 32 | // $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings)); |
||
| 33 | // Opted for annotations to support traits |
||
| 34 | $container->addCompilerPass(DoctrineOrmMappingsPass::createAnnotationMappingDriver([ __NAMESPACE__ . '\\Entity'], [__DIR__ . '/Entity'])); |
||
| 35 | } |
||
| 44 |