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
Description
Since upgrading from Symfony 4.1 to 4.2, if I type hint a service argument as my security voter, I get a type-hint mis-match as what is actually injected is a TraceableVoter.
Possible Solution
Do not inject voters into other services - perhaps this is best practice - I wanted to use the same supports method from the voter in another AccessSubscriber event subscriber for ApiPlatform. I will instead extract the supports method to be used both the voter and the event subscriber for now.