Documentation

UnanimousStrategy
in package
implements AccessDecisionStrategyInterface, Stringable

FinalYes

Grants access if only grant (or abstain) votes were received.

If all voters abstained from voting, the decision will be based on the allowIfAllAbstainDecisions property value (defaults to false).

Tags
author

Fabien Potencier fabien@symfony.com

author

Alexander M. Turek me@derrabus.de

Table of Contents

Interfaces

AccessDecisionStrategyInterface
A strategy for turning a stream of votes into a final decision.
Stringable

Properties

$allowIfAllAbstainDecisions  : bool

Methods

__construct()  : mixed
__toString()  : string
decide()  : bool

Properties

Methods

__construct()

public __construct([bool $allowIfAllAbstainDecisions = false ]) : mixed
Parameters
$allowIfAllAbstainDecisions : bool = false

decide()

public decide(Traversable $results) : bool
Parameters
$results : Traversable
Return values
bool

        
On this page

Search results