TraceableAccessDecisionManager
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) | ||
| bool | decide(TokenInterface $token, array $attributes, object $object = null) Decides whether the access is possible or not. | |
| setVoters(array $voters) deprecated {@inheritdoc} | ||
| string | getStrategy() | |
| iterable|VoterInterface[] | getVoters() | |
| array | getDecisionLog() |
Details
__construct(AccessDecisionManagerInterface $manager)
Parameters
| AccessDecisionManagerInterface | $manager |
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 |
setVoters(array $voters) deprecated
deprecated
{@inheritdoc}
Parameters
| array | $voters |
string getStrategy()
Return Value
| string |
iterable|VoterInterface[] getVoters()
Return Value
| iterable|VoterInterface[] |
array getDecisionLog()
Return Value
| array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.html