You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #18243 [DependencyInjection] Mark service as public with #[Autoconfigure] attribute (adveris-aadam)
This PR was merged into the 5.4 branch.
Discussion
----------
[DependencyInjection] Mark service as public with #[Autoconfigure] attribute
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) ?
Commits
-------
d09cf03 [DI] Mark service as public with #[Autoconfigure] attribute
0 commit comments