function ResolveChildDefinitionsPass::resolveDefinition
Resolves the definition.
Throws
RuntimeException When the definition is invalid
2 calls to ResolveChildDefinitionsPass::resolveDefinition()
- ResolveChildDefinitionsPass::doResolveDefinition in vendor/
symfony/ dependency-injection/ Compiler/ ResolveChildDefinitionsPass.php - ResolveChildDefinitionsPass::processValue in vendor/
symfony/ dependency-injection/ Compiler/ ResolveChildDefinitionsPass.php - Processes a value found in a definition tree.
File
-
vendor/
symfony/ dependency-injection/ Compiler/ ResolveChildDefinitionsPass.php, line 60
Class
- ResolveChildDefinitionsPass
- This replaces all ChildDefinition instances with their equivalent fully merged Definition instance.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
private function resolveDefinition(ChildDefinition $definition) : Definition {
try {
return $this->doResolveDefinition($definition);
} catch (ServiceCircularReferenceException $e) {
throw $e;
} catch (ExceptionInterface $e) {
$r = new \ReflectionProperty($e, 'message');
$r->setValue($e, \sprintf('Service "%s": %s', $this->currentId, $e->getMessage()));
throw $e;
}
}