Removes a service definition.
@api
Parameters
string $id The service identifier:
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 286
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)]);
}