Skip to content

[DependencyInjection] Complete examples with #[TaggedIterator] and #[TaggedLocator] attributes #17747

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

Merged

Conversation

alexandre-daubois
Copy link
Member

Resolves #15948

@carsonbot carsonbot added this to the 5.4 milestone Jan 14, 2023
@alexandre-daubois alexandre-daubois force-pushed the tagged-iterator-attribute-completion branch 2 times, most recently from 37bdbf3 to e77747b Compare January 14, 2023 20:02
class CommandBus
{
public function __construct(
#[TaggedLocator('app.handler', indexAttribute: 'key')] ServiceLocator $locator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#[TaggedLocator('app.handler', indexAttribute: 'key')] ServiceLocator $locator
#[TaggedLocator('app.handler', indexAttribute: 'key')]
ServiceLocator $locator

Lets go with a line break here and in the other examples

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree! Here you go 👍

@OskarStark OskarStark changed the title [DependencyInjection] Complete examples with TaggedIterator and TaggedLocator attributes [DependencyInjection] Complete examples with #[TaggedIterator] and #[TaggedLocator] attributes Jan 15, 2023
@alexandre-daubois alexandre-daubois force-pushed the tagged-iterator-attribute-completion branch from e77747b to f6c140c Compare January 15, 2023 10:46
@OskarStark
Copy link
Contributor

Thank you @alexandre-daubois.

@OskarStark OskarStark merged commit beed31f into symfony:5.4 Jan 15, 2023
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.

3 participants