-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Deprecate some compiler passes in favor of tagged iterator args #24362
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
Conversation
when merging into master, "symfony/dependency-injection" should be removed from Config's composer.json |
a75ae94
to
98ef323
Compare
*/ | ||
public function add(CacheClearerInterface $clearer) | ||
{ | ||
@trigger_error(sprintf('The "%s()" method is deprecated since version 3.4 and will be removed in 4.0, inject the list of clearers as a constructor argument instead.', __METHOD__), E_USER_DEPRECATED); | ||
|
||
$this->clearers[] = $clearer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't$this->clearers
an iterator now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it, but here is my reasoning: this method is deprecated, and no code exists yet that uses both the method and an iterator. No new code should be written that would use both an iterator, and the deprecated method. Thus, all is fine :)
98ef323
to
fa62e50
Compare
Thank you @nicolas-grekas. |
…f tagged iterator args (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Deprecate some compiler passes in favor of tagged iterator args | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - More code that we can drop :) Commits ------- fa62e50 [HttpKernel] Deprecate some compiler passes in favor of tagged iterator args
Ref PR introducing this feature: #22200 |
More code that we can drop :)