PHP 클래스 ZfcRbac\Guard\RoutePermissionsGuard

저자: 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 Route guard rules Those rules are an associative array that map a rule with one or multiple permissions

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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

프로퍼티 상세

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

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

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

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