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:
parent
deb499ebaf
commit
f7e634bc3e
@ -53,6 +53,7 @@ class ResettableServicePass implements CompilerPassInterface
|
||||
}
|
||||
|
||||
if (empty($services)) {
|
||||
$container->removeAlias('services_resetter');
|
||||
$container->removeDefinition('services_resetter');
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user