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] Update syntax for#[AutowireLocator] and add#[AutowireIterator]#18993

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

Conversation

@OskarStark
Copy link
Contributor

@OskarStarkOskarStark commentedOct 5, 2023
edited
Loading

alexandre-daubois reacted with thumbs up emoji
@carsonbotcarsonbot changed the titleShow array syntax for#[AutowireLocator][DependencyInjection] Show array syntax for#[AutowireLocator]Oct 5, 2023
@carsonbotcarsonbot added this to the6.4 milestoneOct 5, 2023
Copy link
Member

@kbondkbond left a comment

Choose a reason for hiding this comment

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

This attribute now behaves identically toTaggedLocator - not sure we want to document this until we deprecate that attribute?

Additionally, when passing an array of services, you can useSubscribedService's in order to add other DI attributes.

@OskarStarkOskarStark changed the title[DependencyInjection] Show array syntax for#[AutowireLocator][DependencyInjection] Update syntax for#[AutowireLocator]Oct 6, 2023
@OskarStarkOskarStark added the Waiting Code MergeDocs for features pending to be merged labelOct 6, 2023
@carsonbotcarsonbot modified the milestones:6.4,nextOct 6, 2023
@OskarStark
Copy link
ContributorAuthor

OskarStark commentedOct 6, 2023
edited
Loading

Additionally, when passing an array of services, you can use SubscribedService's in order to add other DI attributes.

I don't get it 😄 Can you add an example or provide a PR? Thanks

@OskarStarkOskarStark requested a review fromkbondOctober 6, 2023 06:18
@OskarStarkOskarStark changed the title[DependencyInjection] Update syntax for#[AutowireLocator][DependencyInjection] Update syntax for#[AutowireLocator] and add#[AutowireIterator]Oct 6, 2023
@OskarStark
Copy link
ContributorAuthor

SubscribedService added

@OskarStarkOskarStark removed the Waiting Code MergeDocs for features pending to be merged labelOct 6, 2023
@OskarStarkOskarStark requested review fromjaviereguiluz and removed request forkbondOctober 9, 2023 07:43
@kbond
Copy link
Member

I don't get it 😄 Can you add an example or provide a PR? Thanks

A bit contrived but here's an example:https://github.com/symfony/symfony/blob/3147082e35faadd873a801a4011bc8cbb79807e0/src/Symfony/Component/DependencyInjection/Tests/Fixtures/AutowireLocatorConsumer.php#L26

@OskarStarkOskarStarkforce-pushed theautowire-locator-optional-dep branch from06ec120 tod173ca7CompareOctober 10, 2023 12:06
@OskarStark
Copy link
ContributorAuthor

Ready to merge from my side

@OskarStarkOskarStark modified the milestones:next,6.4Oct 10, 2023
@OskarStarkOskarStarkforce-pushed theautowire-locator-optional-dep branch from4dbc867 to528cbdaCompareOctober 10, 2023 14:03
@OskarStarkOskarStark merged commit4918230 intosymfony:6.4Oct 10, 2023
@OskarStarkOskarStark deleted the autowire-locator-optional-dep branchJune 23, 2025 08:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasAwaiting requested review from nicolas-grekas

@javiereguiluzjaviereguiluzAwaiting requested review from javiereguiluz

1 more reviewer

@kbondkbondkbond approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

[DependencyInjection] Add#[AutowireIterator] attribute and improve `…

3 participants

@OskarStark@kbond@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp