Skip to content

Commit 4fadbcd

Browse files
bug symfony#24979 [HttpKernel] remove services resetter even when it's an alias (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] remove services resetter even when it's an alias | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | 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. Commits ------- f7e634b remove services resetter even when it's an alias
2 parents a2f8c32 + f7e634b commit 4fadbcd

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)