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
is there a reason why supportsClass function of VoterInterface expects class to be string and not object?
i saw the recommended usage f.e. here http://symfony.com/doc/current/cookbook/security/voters_data_permission.html
and i don't understand why should i use harcoded string in class comparison, rather then doing: return $class instanceof Post
The text was updated successfully, but these errors were encountered:
is there a reason why
supportsClass
function ofVoterInterface
expects class to be string and not object?i saw the recommended usage f.e. here http://symfony.com/doc/current/cookbook/security/voters_data_permission.html
and i don't understand why should i use harcoded string in class comparison, rather then doing:
return $class instanceof Post
The text was updated successfully, but these errors were encountered: