PHP 클래스 ZfcRbac\Guard\ControllerGuard

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

보호된 프로퍼티들

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

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( RoleService $roleService, array $rules = [] )
$roleService ZfcRbac\Service\RoleService
$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

프로퍼티 상세

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

protected RoleService,ZfcRbac\Service $roleService
리턴 ZfcRbac\Service\RoleService

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

Controller guard rules
protected array $rules
리턴 array