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
파일 보기 프로젝트 열기: imbo/imbo

공개 메소드들

메소드 설명
__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