Skip to content
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

[DependencyInjection] Clarify the #[Target] attribute 2 #19814

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Apr 22, 2024

Follow-up to #19789, adds a paragraph about the debug:autowiring command.

@HypeMC HypeMC force-pushed the clarify-the-target-attribute-2 branch from 8a61a6f to c1ab4a8 Compare April 22, 2024 09:52
(like shown in the example above).
by passing the name of the argument used in the named alias. Thanks to this, you're able
to have multiple services implementing the same interface and keep the argument name
decorrelated of any implementation name (like shown in the example above).
Copy link
Member

Choose a reason for hiding this comment

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

In addition, you'll get an exception in case you make any typo in the target name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@javiereguiluz javiereguiluz force-pushed the clarify-the-target-attribute-2 branch from 2cad785 to 81cc7f0 Compare June 24, 2024 10:39
@javiereguiluz
Copy link
Member

Thank you @HypeMC.

@javiereguiluz javiereguiluz merged commit 35d808d into symfony:6.4 Jun 24, 2024
3 checks passed
@HypeMC HypeMC deleted the clarify-the-target-attribute-2 branch June 24, 2024 10:50
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.

None yet

4 participants