Gets a service definition.
@api
string $id The service identifier:
Definition A Definition instance
InvalidArgumentException if the service definition does not exist
public function getDefinition($id) {
$id = strtolower($id);
if (!$this
->hasDefinition($id)) {
throw new InvalidArgumentException(sprintf('The service definition "%s" does not exist.', $id));
}
return $this->definitions[$id];
}