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

[DI] Dedup tags when using instanceof/autoconfigure#23218

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

Merged
fabpot merged 1 commit intosymfony:3.3fromogizanagi:fix/3.3/di/dedup_tags
Jun 20, 2017
Merged

[DI] Dedup tags when using instanceof/autoconfigure#23218

fabpot merged 1 commit intosymfony:3.3fromogizanagi:fix/3.3/di/dedup_tags
Jun 20, 2017

Conversation

@ogizanagi
Copy link
Contributor

@ogizanagiogizanagi commentedJun 17, 2017
edited
Loading

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes, failures unrelated (8dc00bb)
Fixed ticketsN/A
LicenseMIT
Doc PRN/A

This fixes uselessly duplicated tags shown when using thedebug:container command, or in the dumped container in xml format:
screenshot 2017-06-17 a 20 41 27
screenshot 2017-06-17 a 20 41 54
screenshot 2017-06-17 a 20 42 33

(duplicates here are explained by the twig namespaced and unnamespaced versions, and the controllers being tagged explicitly inhttps://github.com/symfony/symfony-demo/blob/master/app/config/services.yml#L25, while also being tagged by autoconfiguration (which is expected))

chalasr and yceruto reacted with thumbs up emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

Taking attributes into account while deduplicating is a requirement. Compiler passes have to be able to behave correctly when duplicates are found, we reviewed SF ones while doing 3.3, they are all good.
This means this is not really a bug fix, because the only practical side effect is the output of descriptors, which was just... descriptive :)
But since I can't find any use case for non deduplicated tagswith same attributes, I'm 👍

Copy link
Member

@weaverryanweaverryan left a comment

Choose a reason for hiding this comment

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

Hmm, ok - makes sense to me and I can't think of an issue with this.

@fabpot
Copy link
Member

Thank you@ogizanagi.

@fabpotfabpot merged commit9f877ef intosymfony:3.3Jun 20, 2017
fabpot added a commit that referenced this pull requestJun 20, 2017
…nagi)This PR was merged into the 3.3 branch.Discussion----------[DI] Dedup tags when using instanceof/autoconfigure| Q             | A| ------------- | ---| Branch?       | 3.3 <!-- see comment below -->| Bug fix?      | yes| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->| Tests pass?   | yes, failures unrelated (8dc00bb)| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/AThis fixes uselessly duplicated tags shown when using the `debug:container` command, or in the dumped container in xml format:<img width="554" alt="screenshot 2017-06-17 a 20 41 27" src="https://user-images.githubusercontent.com/2211145/27255375-de79fc4e-539d-11e7-98d9-c10074ddcffb.PNG"><img width="494" alt="screenshot 2017-06-17 a 20 41 54" src="https://user-images.githubusercontent.com/2211145/27255376-de7ff5b8-539d-11e7-97ae-ccd31b1d5254.PNG"><img width="1371" alt="screenshot 2017-06-17 a 20 42 33" src="https://user-images.githubusercontent.com/2211145/27255377-de869ba2-539d-11e7-8cd7-6005f8a499d6.PNG">(duplicates here are explained by the twig namespaced and unnamespaced versions, and the controllers being tagged explicitly inhttps://github.com/symfony/symfony-demo/blob/master/app/config/services.yml#L25, while also being tagged by autoconfiguration ([which is expected](symfony/symfony-docs#7921 (comment))))Commits-------9f877ef [DI] Dedup tags when using instanceof/autoconfigure
@ogizanagiogizanagi deleted the fix/3.3/di/dedup_tags branchJune 20, 2017 14:03
@fabpotfabpot mentioned this pull requestJul 4, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@weaverryanweaverryanweaverryan approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@ogizanagi@fabpot@weaverryan@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp