Symfony\Component\Security\Core\Authorization\AccessDecisionManager::__construct
Constructor.
Signature
public function __construct(array
$voters,
[string
$strategy = 'affirmative',
[Boolean
$allowIfAllAbstainDecisions = false,
[Boolean
$allowIfEqualGrantedDeniedDecisions = true]]] )
Parameters
$voters
—
array
- An array of VoterInterface instances
$strategy
—
string
- The vote strategy
$allowIfAllAbstainDecisions
—
object
- Whether to grant access if all voters abstained or not
$allowIfEqualGrantedDeniedDecisions
—
object
- Whether to grant access if result are equals
Errors/Exceptions
-
InvalidArgumentException