interface AuthorisationInterface (View source)

The AuthorisationInterface class.

Methods

boolean
authorise(string $policy, mixed $user, mixed $data = null)

authorise

addPolicy(string $name, PolicyInterface|callable $handler)

addPolicy

Details

at line line 27
boolean authorise(string $policy, mixed $user, mixed $data = null)

authorise

Parameters

string $policy
mixed $user
mixed $data

Return Value

boolean

at line line 37
AuthorisationInterface addPolicy(string $name, PolicyInterface|callable $handler)

addPolicy

Parameters

string $name
PolicyInterface|callable $handler

Return Value

AuthorisationInterface

at line line 46
AuthorisationInterface registerPolicyProvider(PolicyProviderInterface $policy)

registerPolicy

Parameters

PolicyProviderInterface $policy

Return Value

AuthorisationInterface