AuthorizableInterface
interface AuthorizableInterface
Authorizable interface.
Methods
void
bool
can(string $action, object|string $entity, mixed ...$parameters)
Returns true if allowed to perform the action on the entity and false if not.
Details
at line 23
void
setAuthorizer(AuthorizerInterface $authorizer)
Sets the authorizer.
at line 33
bool
can(string $action, object|string $entity, mixed ...$parameters)
Returns true if allowed to perform the action on the entity and false if not.