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\CompilerCode
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));
}