Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FrameworkBundle] fix registering late resettable services #43981

Merged
merged 1 commit into from Nov 10, 2021

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Nov 9, 2021

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)

@@ -146,7 +146,7 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new CachePoolPrunerPass(), PassConfig::TYPE_AFTER_REMOVING);
$this->addCompilerPassIfExists($container, FormPass::class);
$container->addCompilerPass(new WorkflowGuardListenerPass());
$container->addCompilerPass(new ResettableServicePass());
$container->addCompilerPass(new ResettableServicePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -32);
Copy link
Contributor

@rmikalkenas rmikalkenas Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to also update ResettableServicePassTest with the same type and priority

Loading

fabpot
fabpot approved these changes Nov 10, 2021
@fabpot
Copy link
Member

@fabpot fabpot commented Nov 10, 2021

Thank you @nicolas-grekas.

Loading

@fabpot fabpot merged commit 3a2b2da into symfony:4.4 Nov 10, 2021
8 of 10 checks passed
Loading
@fabpot fabpot deleted the reset-reg branch Nov 10, 2021
@fabpot fabpot mentioned this pull request Nov 14, 2021
@fabpot fabpot mentioned this pull request Nov 14, 2021
@fabpot fabpot mentioned this pull request Nov 22, 2021
@fabpot fabpot mentioned this pull request Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants