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

Breadcrumb

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

function AddExpressionLanguageProvidersPass::process

Overrides CompilerPassInterface::process

File

vendor/symfony/routing/DependencyInjection/AddExpressionLanguageProvidersPass.php, line 25

Class

AddExpressionLanguageProvidersPass
Registers the expression language providers.

Namespace

Symfony\Component\Routing\DependencyInjection

Code

public function process(ContainerBuilder $container) : void {
    if (!$container->has('router.default')) {
        return;
    }
    $definition = $container->findDefinition('router.default');
    foreach ($container->findTaggedServiceIds('routing.expression_language_provider', true) as $id => $attributes) {
        $definition->addMethodCall('addExpressionLanguageProvider', [
            new Reference($id),
        ]);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal