AuthorizerInterface
interface AuthorizerInterface
Authorizer interface.
Methods
registerPolicy(string $entityClass, string $policyClass)
Registers an authorization policy.
bool
can(UserEntityInterface|null $user, string $action, object|string $entity, mixed ...$parameters)
Returns TRUE if the user is allowed to perform the action on the entity.
Details
at line 23
registerPolicy(string $entityClass, string $policyClass)
Registers an authorization policy.
at line 34
bool
can(UserEntityInterface|null $user, string $action, object|string $entity, mixed ...$parameters)
Returns TRUE if the user is allowed to perform the action on the entity.