Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DependencyInjection] Deprecate default index/priority methods when defining tagged locators/iterators#62339

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
nicolas-grekas wants to merge3 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromnicolas-grekas:di-tagged-default-method-deprec

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
Issues-
LicenseMIT

I'm targeting 7.4 because this might be a last-minute deprecation we'd like to do.

The first commit is#62329

The second commit is deprecatinggetDefaultFooName() methods and$defaultIndexMethod arguments used to build tagged iterators/locators (and alike for priorities).

These have been supersceded by#[AsTaggedItem] attributes, which are available since Symfony 5.3.

It was about time. Deprecating these will reduce complexity of the code, and of the doc!

}
if (!\is_array($exclude)) {
if (false ===$defaultIndexMethod) {
$defaultIndexMethod =$exclude;
Copy link
Member

Choose a reason for hiding this comment

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

Why this case ?$exclude is not in the position of the old$defaultIndexMethod

@nicolas-grekasnicolas-grekasforce-pushed thedi-tagged-default-method-deprec branch from2677a0a to9b40d76CompareNovember 7, 2025 17:24
@nicolas-grekas
Copy link
MemberAuthor

Status: needs work

The last commit fixes the tests but needs close review / refactoring of mine (it's LLM generated for now)

@stof
Copy link
Member

stof commentedNov 7, 2025

I don't think the amount of code simplification brought by that feature is worth adding new deprecations so late in the process.
AFAIK, our rule so far was that no new deprecations would be added once the first beta was tagged, to give time to the ecosystem to catch up. If we keep adding deprecations until the very last moment, projects might not be comfortable adding support for Symfony 8.0 in their composer requirement during that beta phase (as they might not be compatible with the stable version if we deprecate and remove something else), which hurts the community adoption of the beta versions of new major versions.

nicolas-grekas reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp