AuthorizableTrait
trait AuthorizableTrait
Authorizable trait.
Properties
protected AuthorizerInterface | $authorizer | Authorizer. |
Methods
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 31
setAuthorizer(AuthorizerInterface $authorizer)
Sets the authorizer.
at line 44
bool
can(string $action, object|string $entity, mixed ...$parameters)
Returns TRUE if allowed to perform the action on the entity and FALSE if not.