You are here

private function AnalyzeServiceReferencesPass::getDefinitionId in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php \Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass::getDefinitionId()
2 calls to AnalyzeServiceReferencesPass::getDefinitionId()
AnalyzeServiceReferencesPass::getDefinition in vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php
Returns a service definition given the full name or an alias.
AnalyzeServiceReferencesPass::processArguments in vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php
Processes service definitions for arguments to find relationships for the service graph.

File

vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php, line 142

Class

AnalyzeServiceReferencesPass
Run this pass before passes that need to know more about the relation of your services.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

private function getDefinitionId($id) {
  while ($this->container
    ->hasAlias($id)) {
    $id = (string) $this->container
      ->getAlias($id);
  }
  if (!$this->container
    ->hasDefinition($id)) {
    return;
  }
  return $id;
}