PHP Class Neos\Flow\Security\Authorization\Interceptor\AfterInvocation

1. We call the AfterInvocationManager with the method's return value as parameter 2. If we had a "run as" support, we would have to reset the security context 3. If a PermissionDeniedException was thrown we look for any an authentication entry point in the active tokens to redirect to authentication 4. Then the value is returned to the caller
Inheritance: implements Neos\Flow\Security\Authorization\InterceptorInterface
Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$afterInvocationManager Neos\Flow\Security\Authorization\AfterInvocationManagerInterface
$result mixed Result of the (probably intercepted) target method

Public Methods

Method Description
__construct ( Context $securityContext, Neos\Flow\Security\Authorization\AfterInvocationManagerInterface $afterInvocationManager ) Constructor.
invoke ( ) : boolean Invokes the security interception
setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Sets the current joinpoint for this interception
setResult ( mixed $result ) : void Sets the result (return object) of the intercepted method

Method Details

__construct() public method

Constructor.
public __construct ( Context $securityContext, Neos\Flow\Security\Authorization\AfterInvocationManagerInterface $afterInvocationManager )
$securityContext Neos\Flow\Security\Context The current security context
$afterInvocationManager Neos\Flow\Security\Authorization\AfterInvocationManagerInterface The after invocation manager

invoke() public method

Invokes the security interception
public invoke ( ) : boolean
return boolean TRUE if the security checks was passed

setJoinPoint() public method

Sets the current joinpoint for this interception
public setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
return void

setResult() public method

Sets the result (return object) of the intercepted method
public setResult ( mixed $result ) : void
$result mixed The result of the intercepted method
return void

Property Details

$afterInvocationManager protected_oe property

protected AfterInvocationManagerInterface,Neos\Flow\Security\Authorization $afterInvocationManager
return Neos\Flow\Security\Authorization\AfterInvocationManagerInterface

$result protected_oe property

Result of the (probably intercepted) target method
protected mixed $result
return mixed