Skip to content

Conversation

@nicolas-grekas
Copy link
Member

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)

$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

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

@fabpot
Copy link
Member

fabpot commented Nov 10, 2021

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 3a2b2da into symfony:4.4 Nov 10, 2021
@fabpot fabpot deleted the reset-reg branch November 10, 2021 07:51
This was referenced Nov 14, 2021
This was referenced Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants