| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function process(ContainerBuilder $container) |
||
| 24 | { |
||
| 25 | if ($container->hasDefinition('doctrine.dbal.default_connection')) { |
||
| 26 | |||
| 27 | $definition = new Definition(); |
||
| 28 | |||
| 29 | $definition |
||
| 30 | ->setClass(DoctrineDbalExecutor::class) |
||
| 31 | ->setArguments(array(new Reference('doctrine.dbal.default_connection'))) |
||
| 32 | ->setPublic(false) |
||
| 33 | ; |
||
| 34 | |||
| 35 | $definition->addTag('run_open_code.query_resources_loader.executor', array( |
||
| 36 | 'name' => 'doctrine_dbal_default_connection_executor' |
||
| 37 | )); |
||
| 38 | |||
| 39 | $container->setDefinition('run_open_code.query_resources_loader.executor.doctrine_dbal_default_connection_executor', $definition); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | } |
||
| 43 |