Skip to content

[DependencyInjection] Mark service as public with #[Autoconfigure] attribute #18243

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 1 commit into from
Jun 21, 2024

Conversation

aurac
Copy link
Contributor

@aurac aurac commented Apr 22, 2023

I wanted to mark a service as public with an attribute to avoid yaml configuration, but I could not find anything in the documentation. So I started digging and found out that the #[Autoconfigure] attribute allows to do that.

Also, the mention

PHP attributes require at least PHP 8.0.

is not needed in 6.0. Should I create an other PR (if this one is relevant) ?

@carsonbot carsonbot added this to the 5.4 milestone Apr 22, 2023
@carsonbot carsonbot changed the title [DI] Mark service as public with #[Autoconfigure] attribute [DependencyInjection] Mark service as public with #[Autoconfigure] attribute Apr 22, 2023
@javiereguiluz
Copy link
Member

@aurac I'm really sorry that your PR fell off our radar and we didn't merge it on time. We just merged it. Thanks!

@javiereguiluz javiereguiluz merged commit 5d8e49c into symfony:5.4 Jun 21, 2024
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.

4 participants