Skip to content

Allow usage of #[Target] attribute for the MongoDB client #15

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
merged 2 commits into from
Mar 5, 2025

Conversation

GromNaN
Copy link
Collaborator

@GromNaN GromNaN commented Apr 5, 2024

Suggested by @stof: the #[Target] attribute leverage the argument aliases to select a client instance.

It was introduced in Symfony 5.3: https://symfony.com/blog/new-in-symfony-5-3-service-autowiring-with-attributes

This makes the #[AutowireClient] attribute useless.

@GromNaN GromNaN added this to the 0.2 milestone Apr 5, 2024
@GromNaN GromNaN requested a review from alcaeus April 5, 2024 10:32
@GromNaN GromNaN removed this from the 0.2 milestone Apr 5, 2024
@OskarStark
Copy link
Contributor

Looks good, can you add a test case? Thanks

@GromNaN GromNaN added this to the 0.3 milestone Mar 4, 2025
Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@GromNaN GromNaN merged commit 1cbc4c5 into mongodb-labs:0.3 Mar 5, 2025
32 checks passed
@OskarStark
Copy link
Contributor

Can you please create a 0.3 release ? ❤️

@GromNaN GromNaN deleted the target branch March 5, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants