You are here

public function ContainerBuilder::hasAlias in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::hasAlias()

Returns true if an alias exists under the given identifier.

Parameters

string $id The service identifier:

Return value

bool true if the alias exists, false otherwise

File

vendor/symfony/dependency-injection/ContainerBuilder.php, line 663

Class

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

Namespace

Symfony\Component\DependencyInjection

Code

public function hasAlias($id) {
  return isset($this->aliasDefinitions[strtolower($id)]);
}