Class Authorizer
The authorizer service helps with user authorization (permission checking).
Constructor dependencies
Constructor dependencies are passed as an array of key=>value
pair.
The required dependencies are:
logger
A PSR3 logger instance.acl
A Zend ACL (Access-Control-List) instance.resource
The ACL resource identifier (string).
Checking permissions
To check if a given ACL (passed in constructor) allows a list of permissions (aka privileges):
userAllowed(UserInterface $user, string[] $aclPermissions)
rolesAllowed(string[] $roles, string[] $aclPermissions)
- Charcoal\User\Authorizer implements Psr\Log\LoggerAwareInterface uses Psr\Log\LoggerAwareTrait (not available)
public
|
|
protected
Zend\Permissions\Acl\Acl
|
|
protected
string
|
|
public
boolean
|
|
public
boolean
|