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) | ||
| Boolean |
supportsAttribute(string $attribute)
Checks if the voter supports the given attribute. |
|
| integer |
vote(TokenInterface $token, object $object, array $attributes)
Returns the vote for the given parameters. |
|
| Boolean |
supportsClass(string $class)
Checks if the voter supports the given class. |
Details
at line 39
public
__construct(AclProviderInterface $aclProvider, ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy, SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy, PermissionMapInterface $permissionMap, LoggerInterface $logger = null, $allowIfObjectIdentityUnavailable = true)
at line 49
public Boolean
supportsAttribute(string $attribute)
Checks if the voter supports the given attribute.
at line 54
public integer
vote(TokenInterface $token, object $object, array $attributes)
Returns the vote for the given parameters.
This method must return one of the following constants:
ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.
at line 139
public Boolean
supportsClass(string $class)
Checks if the voter supports the given class.