Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement::setJoinPoint PHP Метод

setJoinPoint() публичный Метод

Sets the current joinpoint for this interception
public setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
Результат void
    public function setJoinPoint(JoinPointInterface $joinPoint)
    {
        $this->joinPoint = $joinPoint;
    }

Usage Example

 /**
  * The policy enforcement advice. This advices applies the security enforcement interceptor to all methods configured in the policy.
  * 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
  *
  * @Flow\Around("filter(Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilegePointcutFilter)")
  * @param JoinPointInterface $joinPoint The current joinpoint
  * @return mixed The result of the target method if it has not been intercepted
  */
 public function enforcePolicy(JoinPointInterface $joinPoint)
 {
     if ($this->securityContext->areAuthorizationChecksDisabled() !== true) {
         $this->policyEnforcementInterceptor->setJoinPoint($joinPoint);
         $this->policyEnforcementInterceptor->invoke();
     }
     return $joinPoint->getAdviceChain()->proceed($joinPoint);
 }
All Usage Examples Of Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement::setJoinPoint