Authorizer
class Authorizer implements AuthorizerInterface
Authorizer.
Properties
| protected Container | $container | Container. | |
| protected array | $policies | Policies. | 
Methods
                    registerPolicy(string $entityClass, string $policyClass)
        
                                            
                
            Registers an authorization policy.
                    policyFactory(object|string $entity)
        
                                            
                
            Policy factory.
                    bool
                
                
                    can(UserEntityInterface|null $user, string $action, object|string $entity, mixed ...$parameters)
        
                                            
                
            Returns TRUE if the user is allowed to perform the action on the entity.
Details
        at         line 44
                            
    __construct(Container|null $container = null)
        
    
    Constructor.
        at         line 52
                            
    registerPolicy(string $entityClass, string $policyClass)
        
    
    Registers an authorization policy.
        at         line 63
                    protected        PolicyInterface
    policyFactory(object|string $entity)
        
    
    Policy factory.
        at         line 78
                            bool
    can(UserEntityInterface|null $user, string $action, object|string $entity, mixed ...$parameters)
        
    
    Returns TRUE if the user is allowed to perform the action on the entity.