| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function process(ContainerBuilder $container) |
||
| 12 | { |
||
| 13 | if (!$container->has('lag.admin.responder.storage')) { |
||
| 14 | return; |
||
| 15 | } |
||
| 16 | $storage = $container->getDefinition('lag.admin.responder.storage'); |
||
| 17 | $responderIds = $container->findTaggedServiceIds('responder'); |
||
| 18 | |||
| 19 | foreach ($responderIds as $responderId => $attributes) { |
||
| 20 | $storage->addMethodCall('add', [ |
||
| 21 | $responderId, |
||
| 22 | new Reference($responderId), |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | } |
||
| 27 |