Méthode |
Description |
|
getAccessDecision ( array $requestedRoles ) : boolean |
This method get the votes from all the voters and sends them to the ruling. |
|
getCurrentPath ( ) : StringObject |
Returns current path (url) as StringObject instance. |
|
getRequestedRoles ( ) : array |
Returns an array of roles required by the access rule. |
|
getVoters ( ) : array |
Creates an array of registered Voters. |
|
setDecisionStrategy ( ) |
Sets the decision strategy based on the application configuration. |
|
testPath ( string $path ) : boolean |
Tests the given $path if it's within the current request path. |
|
whatsTheRuling ( integer $votes, integer $maxVotes ) : boolean |
Method that decides if access is allowed or not based on the results of votes and the defined decision strategy. |
|