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

Skip to content

Commit 6cacef8

Browse files
[FrameworkBundle] fix registering late resettable services
1 parent 8e59e85 commit 6cacef8

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)