| Conditions | 2 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 6 | 
| 1 | <?php | ||
| 32 | public function process(ContainerBuilder $container) | ||
| 33 |                 { | ||
| 34 | $executorId = 'thruster_actions.executor'; | ||
| 35 |                     $executorDefinition = new Definition('Thruster\Component\Actions\Executor'); | ||
| 36 | |||
| 37 | $container->setDefinition($executorId, $executorDefinition); | ||
| 38 | |||
| 39 |                     foreach ($container->findTaggedServiceIds('thruster_action_executor') as $id => $tags) { | ||
| 40 | $definition = $container->getDefinition($id); | ||
| 41 | $name = call_user_func([$definition->getClass(), 'getSupportedAction']); | ||
| 42 | |||
| 43 |                         $executorDefinition->addMethodCall('addExecutor', [$name, new Reference($id)]); | ||
| 44 | } | ||
| 45 | } | ||
| 46 | } | ||
| 50 |