| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function process(ContainerBuilder $container): void |
||
| 24 | { |
||
| 25 | if (!$container->hasDefinition(ViewMatcherRegistry::class)) { |
||
| 26 | return; |
||
| 27 | } |
||
| 28 | |||
| 29 | $matcherServiceRegistry = $container->getDefinition(ViewMatcherRegistry::class); |
||
| 30 | |||
| 31 | foreach ($container->findTaggedServiceIds(self::MATCHER_TAG) as $id => $attributes) { |
||
| 32 | $matcherServiceRegistry->addMethodCall( |
||
| 33 | 'setMatcher', |
||
| 34 | [ |
||
| 35 | $id, |
||
| 36 | new Reference($id), |
||
| 37 | ] |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 |