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
Describe the bug
When creating a custom filter, I have the error :
Invalid service "App\Foo": its constructor must be public. Did you miss configuring a factory or a static constructor? Try using the "#[Autoconfigure(constructor: ...)]" attribute for the latter.
To Reproduce
Create a custom filter using the FilterTrait like in the documentation.
(OPTIONAL) Additional context
It's maybe due to the symfony 7.3 version since this PR
Changing FilterTrait private constructor to public resolve the issue for me.