Symfony\Component\Security\Core\Authorization\Voter\VoterInterface::vote
Returns the vote for the given parameters.
This method must return one of the following constants: ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.
Signature
public function vote(TokenInterface
$token,
$object,
array
$attributes )
Parameters
$token
— Symfony\Component\Security\Core\Authentication\Token\TokenInterface- A TokenInterface instance
$object
— object- The object to secure
$attributes
— array- An array of attributes associated with the method being invoked
Returns
- integer
- either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED