Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
VoterInterface is the interface implemented by all voters.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface VoterInterface
{
- // constants
- const ACCESS_GRANTED = 1;
- const ACCESS_ABSTAIN = 0;
- const ACCESS_DENIED = 1;
- // methods
- public Boolean supportsAttribute()
- public Boolean supportsClass()
- public integer vote()
Constants
Name | Value |
---|---|
ACCESS_GRANTED | 1 |
ACCESS_ABSTAIN | 0 |
ACCESS_DENIED | 1 |
Methods
public
- supportsAttribute() — Checks if the voter supports the given attribute.
- supportsClass() — Checks if the voter supports the given class.
- vote() — Returns the vote for the given parameters.