diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterMatchersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterMatchersPass.php index 793394b..f085ba4 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterMatchersPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterMatchersPass.php @@ -12,21 +12,21 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** - * Adds services tagged 'chained_matcher' to the 'matcher' service. + * Adds services tagged 'chained_matcher' to the 'router.matcher' service. */ class RegisterMatchersPass implements CompilerPassInterface { /** - * Adds services tagged 'chained_matcher' to the 'matcher' service. + * Adds services tagged 'chained_matcher' to the 'router.matcher' service. * * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container * The container to process. */ public function process(ContainerBuilder $container) { - if (!$container->hasDefinition('matcher')) { + if (!$container->hasDefinition('router.matcher')) { return; } - $matcher = $container->getDefinition('matcher'); + $matcher = $container->getDefinition('router.matcher'); foreach ($container->findTaggedServiceIds('chained_matcher') as $id => $attributes) { $priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0; $matcher->addMethodCall('add', array(new Reference($id), $priority));