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