PHP 클래스 Neos\Flow\Security\Aspect\PolicyEnforcementAspect

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$policyEnforcementInterceptor Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement The policy enforcement interceptor
$securityContext Neos\Flow\Security\Context

공개 메소드들

메소드 설명
__construct ( PolicyEnforcement $policyEnforcementInterceptor, Context $securityContext )
enforcePolicy ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed The policy enforcement advice. This advices applies the security enforcement interceptor to all methods configured in the policy.

메소드 상세

__construct() 공개 메소드

public __construct ( PolicyEnforcement $policyEnforcementInterceptor, Context $securityContext )
$policyEnforcementInterceptor Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement The policy enforcement interceptor
$securityContext Neos\Flow\Security\Context

enforcePolicy() 공개 메소드

Note: If we have some kind of "run as" functionality in the future, we would have to manipulate the security context before calling the policy enforcement interceptor
public enforcePolicy ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
리턴 mixed The result of the target method if it has not been intercepted

프로퍼티 상세

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

The policy enforcement interceptor
protected PolicyEnforcement,Neos\Flow\Security\Authorization\Interceptor $policyEnforcementInterceptor
리턴 Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement

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

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context