diff --git a/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php b/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php index 52cc3a4a83..29433a6d5b 100644 --- a/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php +++ b/src/Symfony/Component/HttpKernel/DependencyInjection/ResettableServicePass.php @@ -53,6 +53,7 @@ class ResettableServicePass implements CompilerPassInterface } if (empty($services)) { + $container->removeAlias('services_resetter'); $container->removeDefinition('services_resetter'); return;