Skip to content

Commit f7e634b

Browse files
committed
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.
1 parent deb499e commit f7e634b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function process(ContainerBuilder $container)
5353
}
5454

5555
if (empty($services)) {
56+
$container->removeAlias('services_resetter');
5657
$container->removeDefinition('services_resetter');
5758

5859
return;

0 commit comments

Comments
 (0)