Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels