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] Fix merging explicit tags and #[AsTaggeditem]#62329

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 merge1 commit intosymfony:7.3
base:7.3
Choose a base branch
Loading
fromnicolas-grekas:di-fix-multi-tagged-item

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedNov 6, 2025
edited
Loading

QA
Branch?7.3
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#59088 (comment)
LicenseMIT

Instead of#62327

$loadFromDefaultMethods = $reflector && null !== $defaultPriorityMethod;

if ($reflector && $definition->isAutoconfigured() && !$definition->hasTag('container.ignore_attributes')) {
$loadFromAttributes = $attributes !== $tagAttributes = array_filter($attributes);
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

As soon as one tag is listed with no tag-attributes, we load php-attributes.
php-attributes are always loaded first. This allows explicit tags to always win over php-attributes when indexes are explicitly declared.

$indexAttribute ?? '' => $attribute->index,
];
if (null === $defaultPriority) {
$defaultPriority = $attribute->priority ?? 0;
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

only the first php-attribute can define a default priority and default index
and defaults defined by this first php-attribute have lower priority than defaults defined by static methods (getDefaultName et al.)

Note that we'd better deprecate static methods for defaults. php-attributes are cleaner IMHO. For 8.1 I suppose.

@nicolas-grekasnicolas-grekasforce-pushed thedi-fix-multi-tagged-item branch 2 times, most recently from06ecad4 tof29141dCompareNovember 6, 2025 15:55
@nicolas-grekasnicolas-grekas changed the base branch from7.4 to7.3November 6, 2025 16:03
@nicolas-grekasnicolas-grekas modified the milestones:7.4,7.3Nov 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

7.3

Development

Successfully merging this pull request may close these issues.

2 participants

@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp