You are here

private function CheckReferenceValidityPass::getDefinition in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/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 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php
Validates an array of References.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php, line 158

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