| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function process(ContainerBuilder $container) |
||
| 21 | { |
||
| 22 | if (!$container->hasDefinition('chamilo_core.tool_chain')) { |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | $definition = $container->getDefinition('chamilo_core.tool_chain'); |
||
| 27 | $taggedServices = $container->findTaggedServiceIds('chamilo_core.tool'); |
||
| 28 | foreach ($taggedServices as $id => $attributes) { |
||
| 29 | $definition->addMethodCall('addTool', [new Reference($id)]); |
||
| 30 | } |
||
| 33 |