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

Breadcrumb

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

class AddExpressionLanguageProvidersPass

Registers the expression language providers.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\Routing\DependencyInjection\AddExpressionLanguageProvidersPass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface

Expanded class hierarchy of AddExpressionLanguageProvidersPass

File

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

Namespace

Symfony\Component\Routing\DependencyInjection
View source
class AddExpressionLanguageProvidersPass implements CompilerPassInterface {
    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),
            ]);
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
AddExpressionLanguageProvidersPass::process public function You can modify the container here before it is dumped to PHP code. Overrides CompilerPassInterface::process

API Navigation

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