PHP 클래스 ZfcRbac\Guard\ControllerPermissionsGuard

저자: Michaël Gallego ([email protected])
저자: JM Leroux ([email protected])
상속: extends AbstractGuard, use trait ProtectionPolicyTrait
파일 보기 프로젝트 열기: zf-commons/zfc-rbac 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$authorizationService ZfcRbac\Service\AuthorizationServiceInterface
$rules array Controller guard rules

공개 메소드들

메소드 설명
__construct ( ZfcRbac\Service\AuthorizationServiceInterface $authorizationService, array $rules = [] ) Constructor
isGranted ( MvcEvent $event ) {@inheritDoc}
setRules ( array $rules ) : void Set the rules

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( ZfcRbac\Service\AuthorizationServiceInterface $authorizationService, array $rules = [] )
$authorizationService ZfcRbac\Service\AuthorizationServiceInterface
$rules array

isGranted() 공개 메소드

{@inheritDoc}
public isGranted ( MvcEvent $event )
$event Zend\Mvc\MvcEvent

setRules() 공개 메소드

A controller rule is made the following way: [ 'controller' => 'ControllerName', 'actions' => []/string 'roles' => []/string ]
public setRules ( array $rules ) : void
$rules array
리턴 void

프로퍼티 상세

$authorizationService 보호되어 있는 프로퍼티

protected AuthorizationServiceInterface,ZfcRbac\Service $authorizationService
리턴 ZfcRbac\Service\AuthorizationServiceInterface

$rules 보호되어 있는 프로퍼티

Controller guard rules
protected array $rules
리턴 array