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

Breadcrumb

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

class ExtensionCompilerPass

A pass to automatically process extensions if they implement CompilerPassInterface.

@author Wouter J <wouter@wouterj.nl>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Compiler\ExtensionCompilerPass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface

Expanded class hierarchy of ExtensionCompilerPass

File

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

Namespace

Symfony\Component\DependencyInjection\Compiler
View source
class ExtensionCompilerPass implements CompilerPassInterface {
    public function process(ContainerBuilder $container) : void {
        foreach ($container->getExtensions() as $extension) {
            if (!$extension instanceof CompilerPassInterface) {
                continue;
            }
            $extension->process($container);
        }
    }

}

Members

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