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
Those classes are not meant to be instantiated and they're not wired anywhere. However, wen I try to perform a service autodiscovery on a namespace that hat classes like that, I now get an error:
Invalid service "Foo\Bar": its constructor must be public. Did you miss configuring a factory or a static constructor? Try using the "#[Autoconfigure(constructor: ...)]" attribute for the latter.
Excluding each and every of these classes from the discovery solves this issue, but I would've expected that this error is not raised unless I actually try to wire one of those classes as a service.
How to reproduce
I'll try to come up with a reproducer soon.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
7.3.0
Description
I tried to upgrade a codebase to Symfony 7.3 that contains classes that serve merely as a namespace for utility functions, e.g.:
Those classes are not meant to be instantiated and they're not wired anywhere. However, wen I try to perform a service autodiscovery on a namespace that hat classes like that, I now get an error:
Excluding each and every of these classes from the discovery solves this issue, but I would've expected that this error is not raised unless I actually try to wire one of those classes as a service.
How to reproduce
I'll try to come up with a reproducer soon.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: