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

Breadcrumb

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

function MergeExtensionConfigurationContainerBuilder::addCompilerPass

Overrides ContainerBuilder::addCompilerPass

File

vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php, line 171

Class

MergeExtensionConfigurationContainerBuilder
A container builder preventing using methods that wouldn't have any effect from extensions.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function addCompilerPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0) : static {
    throw new LogicException(\sprintf('You cannot add compiler pass "%s" from extension "%s". Compiler passes must be registered before the container is compiled.', get_debug_type($pass), $this->extensionClass));
}
RSS feed
Powered by Drupal