Skip to content

[RFC] [DI][Debug] Add command to debug autoconfigure tags #26295

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

Closed
codedmonkey opened this issue Feb 24, 2018 · 3 comments
Closed

[RFC] [DI][Debug] Add command to debug autoconfigure tags #26295

codedmonkey opened this issue Feb 24, 2018 · 3 comments
Labels
Debug DependencyInjection Feature RFC RFC = Request For Comments (proposals about features that you want to be discussed) Stalled

Comments

@codedmonkey
Copy link
Contributor

codedmonkey commented Feb 24, 2018

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 4.1

Inspired by symfony/symfony-docs#9229.

I've been wondering why there's no list available showing the tags that are applied on certain classes through autoconfiguration. I know it's just a small detail but I wanted to raise the issue nonetheless, autoconfiguration might be optional but so is autowiring.

I've checked out https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php, and I can see why it hasn't been added before. The command compiles the container from cache, but the container dump doesn't contain the information anymore about which classes have been wired through autoconfiguration.

It would be mainly used for debugging purposes and just to show the developer what types of services they can wire through autoconfiguration. It could be called something like

debug:container --interfaces

and explained as

Displays autoconfiguration interfaces for an application

What do you think?

@javiereguiluz javiereguiluz added DependencyInjection Feature Debug RFC RFC = Request For Comments (proposals about features that you want to be discussed) labels Feb 25, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Apr 2, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Apr 2, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Apr 3, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Oct 4, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Oct 4, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Oct 9, 2018
aaa2000 added a commit to aaa2000/symfony that referenced this issue Oct 13, 2018
Simperfit pushed a commit to Simperfit/symfony that referenced this issue Apr 19, 2019
Simperfit pushed a commit to Simperfit/symfony that referenced this issue Apr 21, 2019
Simperfit pushed a commit to Simperfit/symfony that referenced this issue Apr 21, 2019
Simperfit pushed a commit to Simperfit/symfony that referenced this issue Apr 21, 2019
nicolas-grekas pushed a commit to Simperfit/symfony that referenced this issue Sep 29, 2019
atailouloute pushed a commit to atailouloute/symfony that referenced this issue Dec 18, 2019
atailouloute pushed a commit to atailouloute/symfony that referenced this issue Feb 6, 2020
@carsonbot
Copy link

Thank you for this suggestion.
There has not been a lot of activity here for a while. Would you still like to see this feature?

@carsonbot
Copy link

Could I get a reply or should I close this?

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debug DependencyInjection Feature RFC RFC = Request For Comments (proposals about features that you want to be discussed) Stalled
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants