PHP 클래스 ZfcRbac\Guard\RouteGuard

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

보호된 프로퍼티들

프로퍼티 타입 설명
$roleService ZfcRbac\Service\RoleService
$rules array Those rules are an associative array that map a rule with one or multiple roles

공개 메소드들

메소드 설명
__construct ( RoleService $roleService, array $rules = [] ) Constructor
isGranted ( MvcEvent $event ) {@inheritDoc}
setRules ( array $rules ) : void Set the rules (it overrides any existing 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() 공개 메소드

Set the rules (it overrides any existing rules)
public setRules ( array $rules ) : void
$rules array
리턴 void

프로퍼티 상세

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

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

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

Those rules are an associative array that map a rule with one or multiple roles
protected array $rules
리턴 array