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

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
javiereguiluz merged 1 commit intosymfony:6.1fromkbond:autowire-attr-adjust
May 4, 2022

Conversation

@kbond
Copy link
Member

Follow up to#16629 per slack discussion.

For services and expressions, explicitly use the named argument.

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment
edited
Loading

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
MemberAuthor

I went with "instructs".

@javiereguiluzjaviereguiluz merged commit48d02a1 intosymfony:6.1May 4, 2022
@javiereguiluz
Copy link
Member

Thanks Kevin ... and thanks reviewers too!

@kbondkbond deleted the autowire-attr-adjust branchMay 4, 2022 14:31
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@wouterjwouterjwouterj approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.1

Development

Successfully merging this pull request may close these issues.

5 participants

@kbond@javiereguiluz@nicolas-grekas@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp