AclVoter
class AclVoter implements VoterInterface
This voter can be used as a base class for implementing your own permissions.
Methods
__construct(AclProviderInterface $aclProvider, ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy, SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy, PermissionMapInterface $permissionMap, LoggerInterface $logger = null, $allowIfObjectIdentityUnavailable = true)
No description
bool
supportsAttribute(string $attribute)
Checks if the voter supports the given attribute.
int
vote(TokenInterface $token, object|null $object, array $attributes)
Returns the vote for the given parameters.
bool
supportsClass(string $class)
You can override this method when writing a voter for a specific domain class.
Details
at line line 39
__construct(AclProviderInterface $aclProvider, ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy, SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy, PermissionMapInterface $permissionMap, LoggerInterface $logger = null, $allowIfObjectIdentityUnavailable = true)
at line line 49
bool
supportsAttribute(string $attribute)
Checks if the voter supports the given attribute.
at line line 54
int
vote(TokenInterface $token, object|null $object, array $attributes)
Returns the vote for the given parameters.
This method must return one of the following constants: ACCESSGRANTED, ACCESSDENIED, or ACCESS_ABSTAIN.
at line line 143
bool
supportsClass(string $class)
You can override this method when writing a voter for a specific domain class.