PHP Interface Neos\Flow\Security\Authorization\AfterInvocationProcessorInterface

Mostrar archivo Open project: neos/flow-development-collection

Public Methods

Method Description
process ( Context $securityContext, object $object, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Processes the given return object. May throw an security exception or filter the result depending on the current user rights.
supports ( string $className ) : boolean Returns TRUE if this after invocation processor can process return objects of the given class name

Method Details

process() public method

It is resolved and called automatically by the after invocation processor manager. The naming convention for after invocation processors is: [InterceptedClassName]_[InterceptedMethodName]AfterInvocationProcessor
public process ( Context $securityContext, object $object, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$securityContext Neos\Flow\Security\Context The current security context
$object object The return object to be processed
$joinPoint Neos\Flow\Aop\JoinPointInterface The joinpoint of the returning method
return void

supports() public method

Returns TRUE if this after invocation processor can process return objects of the given class name
public supports ( string $className ) : boolean
$className string The class name that should be checked
return boolean TRUE if this access decision manager can decide on objects with the given class name