PHP Class Neos\Flow\Security\Authorization\AfterInvocationProcessorManager

It resolves automatically any available AfterInvcocationProcessorInterface for the given return object and calls them.
Inheritance: implements Neos\Flow\Security\Authorization\AfterInvocationManagerInterface
Mostrar archivo Open project: neos/flow-development-collection

Public Methods

Method Description
process ( Context $securityContext, object $object, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : boolean 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 a appropriate after invocation processor is available to process return objects of the given classname

Method Details

process() public method

It resolves any available AfterInvocationProcessor for the given return object and invokes them. The naming convention is: [InterceptedClassName]_[InterceptedMethodName]_AfterInvocationProcessor
public process ( Context $securityContext, object $object, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : boolean
$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 boolean TRUE if access is granted, FALSE if the manager abstains from decision

supports() public method

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