public function ContainerBuilder::getAlias in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::getAlias()
Gets an alias.
Parameters
string $id The service identifier:
Return value
Throws
InvalidArgumentException if the alias does not exist
File
- vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 687
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function getAlias($id) {
$id = strtolower($id);
if (!isset($this->aliasDefinitions[$id])) {
throw new InvalidArgumentException(sprintf('The service alias "%s" does not exist.', $id));
}
return $this->aliasDefinitions[$id];
}