interface AccessDecisionManagerInterface

AccessDecisionManagerInterface makes authorization decisions.

Methods

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

Decides whether the access is possible or not.

bool
supportsAttribute(string $attribute) deprecated

Checks if the access decision manager supports the given attribute.

true
supportsClass(string $class) deprecated

Checks if the access decision manager supports the given class.

Details

at line 32
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 43
bool supportsAttribute(string $attribute) deprecated

deprecated since version 2.8, to be removed in 3.0.

Checks if the access decision manager supports the given attribute.

Parameters

string $attribute An attribute

Return Value

bool true if this decision manager supports the attribute, false otherwise

at line 54
true supportsClass(string $class) deprecated

deprecated since version 2.8, to be removed in 3.0.

Checks if the access decision manager supports the given class.

Parameters

string $class A class name

Return Value

true if this decision manager can process the class