PHP Класс Imbo\EventListener\AccessControl

This event listener will listen to all access-controlled resources and check if the public key has access to the requested resource. If the public key does not have access to the resource, the listener will throw an exception resulting in a HTTP response with 400 Bad Request. It will also handle loading of ACL-related resources such as resource groups.
Автор: Espen Hovlandsdal ([email protected])
Наследование: implements Imbo\EventListener\ListenerInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( array $params = null ) Class constructor
checkAccess ( Imbo\EventManager\EventInterface $event ) Check if the public key used has access to this resource for this user
getSubscribedEvents ( )
loadGroups ( Imbo\EventManager\EventInterface $event ) Load groups from the configured access control adapter
subscribe ( Imbo\EventManager\EventInterface $event ) Figure out which resources we have available and subscribe to them

Описание методов

__construct() публичный Метод

Class constructor
public __construct ( array $params = null )
$params array Parameters for the listener

checkAccess() публичный Метод

Check if the public key used has access to this resource for this user
public checkAccess ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface

getSubscribedEvents() публичный статический Метод

public static getSubscribedEvents ( )

loadGroups() публичный Метод

Load groups from the configured access control adapter
public loadGroups ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface An event instance

subscribe() публичный Метод

Figure out which resources we have available and subscribe to them
public subscribe ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface