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

Breadcrumb

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

function ContainerBuilder::addCompilerPass

Adds a compiler pass.

Parameters

string $type The type of compiler pass:

int $priority Used to sort the passes:

Return value

$this

1 method overrides ContainerBuilder::addCompilerPass()
MergeExtensionConfigurationContainerBuilder::addCompilerPass in vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php
Adds a compiler pass.

File

vendor/symfony/dependency-injection/ContainerBuilder.php, line 497

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public function addCompilerPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0) : static {
    $this->getCompiler()
        ->addPass($pass, $type, $priority);
    $this->addObjectResource($pass);
    return $this;
}

API Navigation

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