remove services resetter even when it's an alias

All the other places in the compiler pass do not care whether the
resetter service is aliased or not. Let's just also properly deal with
the case that the services resetter service was aliased by another
bundle.
This commit is contained in:
Christian Flothmann 2017-11-15 18:30:56 +01:00
parent deb499ebaf
commit f7e634bc3e

View File

@ -53,6 +53,7 @@ class ResettableServicePass implements CompilerPassInterface
}
if (empty($services)) {
$container->removeAlias('services_resetter');
$container->removeDefinition('services_resetter');
return;