| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function process(ContainerBuilder $container) |
||
| 21 | { |
||
| 22 | $dispatcher = $container->getDefinition(Utility::getAliasedName('event_dispatcher')); |
||
| 23 | |||
| 24 | $tagged = $container->findTaggedServiceIds(Utility::getAliasedName('event_subscriber')); |
||
| 25 | foreach ($tagged as $id => $tags) { |
||
| 26 | $dispatcher->addMethodCall('addSubscriber', [new Reference($id)]); |
||
| 27 | } |
||
| 28 | } |
||
| 29 | } |
||
| 30 |