Adds services tagged 'nested_matcher' to the tagged_matcher service.
Expanded class hierarchy of RegisterRouteFiltersPass
class RegisterRouteFiltersPass implements CompilerPassInterface {
/**
* Adds services tagged 'nested_matcher' to the tagged_matcher service.
*
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
* The container to process.
*/
public function process(ContainerBuilder $container) {
if (!$container
->hasDefinition('router.matcher')) {
return;
}
$nested = $container
->getDefinition('router.matcher');
foreach ($container
->findTaggedServiceIds('route_filter') as $id => $attributes) {
$nested
->addMethodCall('addRouteFilter', array(
new Reference($id),
));
}
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RegisterRouteFiltersPass:: |
public | function |
Adds services tagged 'nested_matcher' to the tagged_matcher service. Overrides CompilerPassInterface:: |