| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function process(ContainerBuilder $container) |
||
| 22 | { |
||
| 23 | if (!$container->has(JobQueue::class)) { |
||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | $taggedServices = $container->findTaggedServiceIds('sfcod.jobqueue.job'); |
||
| 28 | |||
| 29 | foreach ($taggedServices as $id => $tags) { |
||
| 30 | $definition = $container->findDefinition($id); |
||
| 31 | $definition->setPublic(true); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |