Removes a service definition.
public removeDefinition ( string $id ) | ||
$id | string | The service identifier |
$containerBuilder->removeDefinition('my_service');
$definition = $containerBuilder->getDefinition('my_service'); $definition->clearTag('my_tag');This code will remove the "my_tag" tag from the "my_service" service definition. The Symfony Dependency Injection component is part of the larger Symfony framework, which provides a wide range of tools and libraries for building PHP applications.
public removeDefinition ( string $id ) | ||
$id | string | The service identifier |