Adds the service aliases.
@api
Parameters
array $aliases An array of aliases:
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 473
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjection
Code
public function addAliases(array $aliases) {
foreach ($aliases as $alias => $id) {
$this
->setAlias($alias, $id);
}
}