Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a2b2da

Browse files
committed
bug #43981 [FrameworkBundle] fix registering late resettable services (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [FrameworkBundle] fix registering late resettable services | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - `ResettableServicePass` must run after other passes that could potentially register more resettable services (eg `HttpClientPass`) Commits ------- 6cacef8 [FrameworkBundle] fix registering late resettable services
2 parents 0eacfd9 + 6cacef8 commit 3a2b2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function build(ContainerBuilder $container)
146146
$container->addCompilerPass(new CachePoolPrunerPass(), PassConfig::TYPE_AFTER_REMOVING);
147147
$this->addCompilerPassIfExists($container, FormPass::class);
148148
$container->addCompilerPass(new WorkflowGuardListenerPass());
149-
$container->addCompilerPass(new ResettableServicePass());
149+
$container->addCompilerPass(new ResettableServicePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
150150
$container->addCompilerPass(new RegisterLocaleAwareServicesPass());
151151
$container->addCompilerPass(new TestServiceContainerWeakRefPass(), PassConfig::TYPE_BEFORE_REMOVING, -32);
152152
$container->addCompilerPass(new TestServiceContainerRealRefPass(), PassConfig::TYPE_AFTER_REMOVING);

0 commit comments

Comments
 (0)