function Container::reset
Same name in this branch
- 11.1.x core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::reset()
Overrides ResetInterface::reset
File
-
vendor/
symfony/ dependency-injection/ Container.php, line 277
Class
- Container
- Container is a dependency injection container.
Namespace
Symfony\Component\DependencyInjectionCode
public function reset() : void {
$services = $this->services + $this->privates;
foreach ($services as $service) {
try {
if ($service instanceof ResetInterface) {
$service->reset();
}
} catch (\Throwable) {
continue;
}
}
$this->envCache = $this->services = $this->factories = $this->privates = [];
}