class TraceableAccessDecisionManager implements AccessDecisionManagerInterface

Decorates the original AccessDecisionManager class to log information about the security voters and the decisions made by them.

Methods

__construct(AccessDecisionManagerInterface $manager)

No description

bool
decide(TokenInterface $token, array $attributes, object $object = null)

Decides whether the access is possible or not.

addVoterVote(VoterInterface $voter, array $attributes, int $vote)

Adds voter vote and class to the voter details.

string
getStrategy()

No description

iterable|VoterInterface[]
getVoters()

No description

array
getDecisionLog()

No description

Details

at line 33
__construct(AccessDecisionManagerInterface $manager)

Parameters

AccessDecisionManagerInterface $manager

at line 51
bool decide(TokenInterface $token, array $attributes, object $object = null)

Decides whether the access is possible or not.

Parameters

TokenInterface $token A TokenInterface instance
array $attributes An array of attributes associated with the method being invoked
object $object The object to secure

Return Value

bool true if the access is granted, false otherwise

at line 77
addVoterVote(VoterInterface $voter, array $attributes, int $vote)

Adds voter vote and class to the voter details.

Parameters

VoterInterface $voter voter
array $attributes attributes used for the vote
int $vote vote of the voter

at line 90
string getStrategy()

Return Value

string

at line 101
iterable|VoterInterface[] getVoters()

Return Value

iterable|VoterInterface[]

at line 109
array getDecisionLog()

Return Value

array