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] adjust Autowire attribute docs #16779

Merged
merged 1 commit into from
May 4, 2022

Conversation

kbond
Copy link
Member

@kbond kbond commented May 4, 2022

Follow up to #16629 per slack discussion.

For services and expressions, explicitly use the named argument.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

I have a suggestion about this sentence:

"You can also use the #[Autowire] parameter attribute to configure the problematic arguments:"

I think it would be better to use the verb "hint" or "instruct" instead of "configure".
The reason is that "configure" is a bit overloaded here:

  • configure service definitions explicitly
  • configure the autowiring process (here we refer to this)

With this in mind, what about eg "You can also use the #[Autowire] parameter attribute to hint the autowiring logic about those arguments:"

@kbond
Copy link
Member Author

kbond commented May 4, 2022

I went with "instructs".

@javiereguiluz javiereguiluz merged commit 48d02a1 into symfony:6.1 May 4, 2022
@javiereguiluz
Copy link
Member

Thanks Kevin ... and thanks reviewers too!

@kbond kbond deleted the autowire-attr-adjust branch May 4, 2022 14:31
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.

5 participants