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