public function ContainerBuilder::addAliases

Adds the service aliases.

@api

Parameters

array $aliases An array of aliases:

2 calls to ContainerBuilder::addAliases()
ContainerBuilder::merge in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Merges a ContainerBuilder with the current ContainerBuilder configuration.
ContainerBuilder::setAliases in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Sets the service 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);
  }
}