AccessDecisionManager
class AccessDecisionManager implements AccessDecisionManagerInterface
AccessDecisionManager is the base class for all access decision managers that use decision voters.
Constants
STRATEGY_AFFIRMATIVE |
|
STRATEGY_CONSENSUS |
|
STRATEGY_UNANIMOUS |
|
Methods
__construct(array $voters = array(), string $strategy = self::STRATEGY_AFFIRMATIVE, bool $allowIfAllAbstainDecisions = false, bool $allowIfEqualGrantedDeniedDecisions = true)
Constructor.
setVoters(array $voters)
Configures the voters.
bool
decide(TokenInterface $token, array $attributes, object $object = null)
Decides whether the access is possible or not.
Details
at line line 44
__construct(array $voters = array(), string $strategy = self::STRATEGY_AFFIRMATIVE, bool $allowIfAllAbstainDecisions = false, bool $allowIfEqualGrantedDeniedDecisions = true)
Constructor.
at line line 62
setVoters(array $voters)
Configures the voters.
at line line 70
bool
decide(TokenInterface $token, array $attributes, object $object = null)
Decides whether the access is possible or not.