interface AuthorizableInterface

Authorizable interface.

Methods

void
setAuthorizer(AuthorizerInterface $authorizer)

Sets the authorizer.

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.

Parameters

AuthorizerInterface $authorizer Authorizer

Return Value

void

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.

Parameters

string $action Action
object|string $entity Entity
mixed ...$parameters Additional parameters

Return Value

bool