You are here

public function ContainerBuilder::setAliases in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::setAliases()

Sets the service aliases.

@api

Parameters

array $aliases An array of aliases:

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 660

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public function setAliases(array $aliases) {
  $this->aliasDefinitions = array();
  $this
    ->addAliases($aliases);
}