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

Breadcrumb

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

function ResolveInvalidReferencesPass::process

Process the ContainerBuilder to resolve invalid references.

Overrides CompilerPassInterface::process

File

vendor/symfony/dependency-injection/Compiler/ResolveInvalidReferencesPass.php, line 39

Class

ResolveInvalidReferencesPass
Emulates the invalid behavior if the reference is not found within the container.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) : void {
    $this->container = $container;
    $this->signalingException = new RuntimeException('Invalid reference.');
    try {
        foreach ($container->getDefinitions() as $this->currentId => $definition) {
            $this->processValue($definition);
        }
    } finally {
        unset($this->container, $this->signalingException);
    }
}
RSS feed
Powered by Drupal