Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
30 | 2 | public function process(ContainerBuilder $container) |
|
31 | { |
||
32 | 2 | if ($container->hasDefinition('doctrine.dbal.default_connection')) { |
|
33 | |||
34 | 1 | $definition = new Definition(); |
|
35 | |||
36 | $definition |
||
37 | 1 | ->setClass(DoctrineDbalExecutor::class) |
|
38 | 1 | ->setArguments(array(new Reference('doctrine.dbal.default_connection'))) |
|
39 | 1 | ->setPublic(false) |
|
40 | ; |
||
41 | |||
42 | 1 | $definition->addTag('run_open_code.query_resources_loader.executor', array( |
|
43 | 'name' => 'doctrine_dbal_default_connection_executor' |
||
44 | 1 | )); |
|
45 | |||
46 | 1 | $container->setDefinition('run_open_code.query_resources_loader.executor.doctrine_dbal_default_connection_executor', $definition); |
|
47 | } |
||
48 | 2 | } |
|
49 | } |
||
50 |