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