You are here

class ExtensionCompilerPass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Compiler/ExtensionCompilerPass.php \Symfony\Component\DependencyInjection\Compiler\ExtensionCompilerPass

A pass to automatically process extensions if they implement CompilerPassInterface.

@author Wouter J <wouter@wouterj.nl>

Hierarchy

Expanded class hierarchy of ExtensionCompilerPass

1 file declares its use of ExtensionCompilerPass
ExtensionCompilerPassTest.php in vendor/symfony/dependency-injection/Tests/Compiler/ExtensionCompilerPassTest.php

File

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

Namespace

Symfony\Component\DependencyInjection\Compiler
View source
class ExtensionCompilerPass implements CompilerPassInterface {

  /**
   * {@inheritdoc}
   */
  public function process(ContainerBuilder $container) {
    foreach ($container
      ->getExtensions() as $extension) {
      if (!$extension instanceof CompilerPassInterface) {
        continue;
      }
      $extension
        ->process($container);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ExtensionCompilerPass::process public function You can modify the container here before it is dumped to PHP code. Overrides CompilerPassInterface::process