You are here

public function ContainerBuilder::removeDefinition in Zircon Profile 8

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

Removes a service definition.

Parameters

string $id The service identifier:

File

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

Class

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

Namespace

Symfony\Component\DependencyInjection

Code

public function removeDefinition($id) {
  unset($this->definitions[strtolower($id)]);
}