Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RoutingResolverPass.php

function RoutingResolverPass::process

Overrides CompilerPassInterface::process

File

vendor/symfony/routing/DependencyInjection/RoutingResolverPass.php, line 28

Class

RoutingResolverPass
Adds tagged routing.loader services to routing.resolver service.

Namespace

Symfony\Component\Routing\DependencyInjection

Code

public function process(ContainerBuilder $container) : void {
    if (false === $container->hasDefinition('routing.resolver')) {
        return;
    }
    $definition = $container->getDefinition('routing.resolver');
    foreach ($this->findAndSortTaggedServices('routing.loader', $container) as $id) {
        $definition->addMethodCall('addLoader', [
            new Reference($id),
        ]);
    }
}
RSS feed
Powered by Drupal