Skip to content

[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

Merged
merged 1 commit into from
Sep 28, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Sep 28, 2017

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 :)

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Sep 28, 2017
@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Sep 28, 2017

when merging into master, "symfony/dependency-injection" should be removed from Config's composer.json

*/
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;
Copy link
Member

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?

Copy link
Member Author

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 :)

@fabpot
Copy link
Member

fabpot commented Sep 28, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit fa62e50 into symfony:3.4 Sep 28, 2017
fabpot added a commit that referenced this pull request Sep 28, 2017
…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
@Tobion
Copy link
Contributor

Tobion commented Sep 28, 2017

Ref PR introducing this feature: #22200

@nicolas-grekas nicolas-grekas deleted the di/tagged-services branch September 29, 2017 11:07
This was referenced Oct 18, 2017
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