Returns a service definition given the full name or an alias.
Parameters
string $id A full id or alias for a service definition.:
Return value
Definition The definition related to the supplied id
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/AnalyzeServiceReferencesPass.php, line 121
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 getDefinition($id) {
$id = $this
->getDefinitionId($id);
return null === $id ? null : $this->container
->getDefinition($id);
}