| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class RDMCompilerPass implements CompilerPassInterface |
||
| 20 | { |
||
| 21 | public function process(ContainerBuilder $container) |
||
| 22 | { |
||
| 23 | $container->setAlias( |
||
| 24 | 'addiks_rdm.doctrine.orm.configuration', |
||
| 25 | new Alias(sprintf( |
||
| 26 | 'doctrine.orm.%s_configuration', |
||
| 27 | $this->findDoctrineConnectionName($container) ?? 'default' |
||
| 28 | )) |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | private function findDoctrineConnectionName(ContainerBuilder $container): ?string |
||
| 44 | } |
||
| 45 | |||
| 47 |