From f7e634bc3ead01fa41f3d5d505ec9d150b168849 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 15 Nov 2017 18:30:56 +0100 Subject: [PATCH] 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. --- .../HttpKernel/DependencyInjection/ResettableServicePass.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php b/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php index 52cc3a4a8383f..29433a6d5b195 100644 --- a/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php +++ b/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php @@ -53,6 +53,7 @@ public function process(ContainerBuilder $container) } if (empty($services)) { + $container->removeAlias('services_resetter'); $container->removeDefinition('services_resetter'); return;