You are here

private function CheckReferenceValidityPass::getDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php \Symfony\Component\DependencyInjection\Compiler\CheckReferenceValidityPass::getDefinition()

Returns the Definition given an id.

Parameters

string $id Definition identifier:

Return value

Definition

1 call to CheckReferenceValidityPass::getDefinition()
CheckReferenceValidityPass::validateReferences in vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php
Validates an array of References.

File

vendor/symfony/dependency-injection/Compiler/CheckReferenceValidityPass.php, line 157

Class

CheckReferenceValidityPass
Checks the validity of references.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

private function getDefinition($id) {
  if (!$this->container
    ->hasDefinition($id)) {
    return;
  }
  return $this->container
    ->getDefinition($id);
}