class AfterInvocationProcessorManager implements AfterInvocationManagerInterface (View source)

The default after invocation manager that uses AfterInvocationProcessorInterface to process the return objects.

It resolves automatically any available AfterInvcocationProcessorInterface for the given return object and calls them.

Methods

bool
process(Context $securityContext, object $object, JoinPointInterface $joinPoint)

Processes the given return object. May throw an security exception or filter the result depending on the current user rights.

bool
supports(string $className)

Returns true if a appropriate after invocation processor is available to process return objects of the given classname

Details

bool process(Context $securityContext, object $object, JoinPointInterface $joinPoint)

Processes the given return object. May throw an security exception or filter the result depending on the current user rights.

It resolves any available AfterInvocationProcessor for the given return object and invokes them. The naming convention is: [InterceptedClassName]_[InterceptedMethodName]_AfterInvocationProcessor

processors must also be configurable

Parameters

Context $securityContext

The current security context

object $object

The return object to be processed

JoinPointInterface $joinPoint

The joinpoint of the returning method

Return Value

bool

true if access is granted, false if the manager abstains from decision

Exceptions

AccessDeniedException

bool supports(string $className)

Returns true if a appropriate after invocation processor is available to process return objects of the given classname

Parameters

string $className

The class name that should be checked

Return Value

bool

true if this access decision manager can decide on objects with the given class name