interface AfterInvocationProcessorInterface (View source)

Contract for an after invocation processor.

Methods

void
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 this after invocation processor can process return objects of the given class name

Details

void 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 is resolved and called automatically by the after invocation processor manager. The naming convention for after invocation processors is: [InterceptedClassName]_[InterceptedMethodName]AfterInvocationProcessor

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

void

Exceptions

AccessDeniedException

bool supports(string $className)

Returns true if this after invocation processor can process return objects of the given class name

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