class AccessDecisionManager implements AccessDecisionManagerInterface
AccessDecisionManager is the base class for all access decision managers that use decision voters.
STRATEGY_AFFIRMATIVE | |
STRATEGY_CONSENSUS | |
STRATEGY_UNANIMOUS |
__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. | |
bool | supportsAttribute(string $attribute) Checks if the access decision manager supports the given attribute. | |
true | supportsClass(string $class) Checks if the access decision manager supports the given class. |
Constructor.
Configures the voters.
Decides whether the access is possible or not.
Checks if the access decision manager supports the given attribute.
Checks if the access decision manager supports the given class.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.html