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

Breadcrumb

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

function ExtensionCompilerPass::process

Overrides CompilerPassInterface::process

File

vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php, line 24

Class

ExtensionCompilerPass
A pass to automatically process extensions if they implement CompilerPassInterface.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) : void {
    foreach ($container->getExtensions() as $extension) {
        if (!$extension instanceof CompilerPassInterface) {
            continue;
        }
        $extension->process($container);
    }
}
RSS feed
Powered by Drupal