private function ResolveReferencesToAliasesPass::getDefinitionId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Compiler/ResolveReferencesToAliasesPass.php \Symfony\Component\DependencyInjection\Compiler\ResolveReferencesToAliasesPass::getDefinitionId()
Resolves an alias into a definition id.
Parameters
string $id The definition or alias id to resolve:
Return value
string The definition id with aliases resolved
2 calls to ResolveReferencesToAliasesPass::getDefinitionId()
- ResolveReferencesToAliasesPass::process in vendor/
symfony/ dependency-injection/ Compiler/ ResolveReferencesToAliasesPass.php - Processes the ContainerBuilder to replace references to aliases with actual service references.
- ResolveReferencesToAliasesPass::processArguments in vendor/
symfony/ dependency-injection/ Compiler/ ResolveReferencesToAliasesPass.php - Processes the arguments to replace aliases.
File
- vendor/
symfony/ dependency-injection/ Compiler/ ResolveReferencesToAliasesPass.php, line 86
Class
- ResolveReferencesToAliasesPass
- Replaces all references to aliases with references to the actual service.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
private function getDefinitionId($id) {
$seen = array();
while ($this->container
->hasAlias($id)) {
if (isset($seen[$id])) {
throw new ServiceCircularReferenceException($id, array_keys($seen));
}
$seen[$id] = true;
$id = (string) $this->container
->getAlias($id);
}
return $id;
}