Authorisation
class Authorisation implements AuthorisationInterface (View source)
The Authorisation class.
Methods
boolean
authorise(string $policy, mixed $user, mixed $data = null)
authorise
getPolicy(string $name)
getPolicy
boolean
hasPolicy(string $name)
hasPolicy
getPolicies()
Method to get property Policies
Details
at line line 34
boolean
authorise(string $policy, mixed $user, mixed $data = null)
authorise
at line line 55
AuthorisationInterface
addPolicy(string $name, PolicyInterface|callable $handler)
addPolicy
at line line 79
PolicyInterface
getPolicy(string $name)
getPolicy
at line line 96
AuthorisationInterface
registerPolicyProvider(PolicyProviderInterface $policy)
registerPolicy
at line line 110
boolean
hasPolicy(string $name)
hasPolicy
at line line 120
PolicyInterface[]
getPolicies()
Method to get property Policies
at line line 132
Authorisation
setPolicies(PolicyInterface[] $policies)
Method to set property policies