Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
19 | public function process(ContainerBuilder $container) |
||
20 | { |
||
21 | $manager = $container->getDefinition('dekalee_nightly_task.bag.task'); |
||
22 | $strategies = $container->findTaggedServiceIds('dekalee_nightly.task.strategy'); |
||
23 | foreach ($strategies as $id => $strategy) { |
||
24 | $strategy[0] = array_merge([ |
||
25 | 'priority' => 0, |
||
26 | ], $strategy[0]); |
||
27 | $manager->addMethodCall('addTask', [new Reference($id), $strategy[0]['priority']]); |
||
28 | } |
||
29 | } |
||
30 | } |
||
31 |