src/Web/Servlet/HandlerExecutionChain.php
public function triggerAfterCompletion(ServletRequestInterface $request, ServletResponseInterface $response, \Exception $ex)
    {
        $interceptors = $this->getInterceptors();
        if (!empty($interceptors)) {
            for ($i = $this->interceptorIndex; $i >= 0; $i--) {
                $interceptor = $interceptors[$i];
                try {
                    $interceptor->afterCompletion($request, $response, $this->handler);
                } catch (\Exception $exc) {
                    // TODO: Add logging
                }
            }
        }
    }
public function triggerAfterCompletion(ServletRequestInterface $request, ServletResponseInterface $response, \Exception $ex)
    {
        $interceptors = $this->getInterceptors();
        if (!empty($interceptors)) {
            for ($i = $this->interceptorIndex; $i >= 0; $i--) {
                $interceptor = $interceptors[$i];
                try {
                    $interceptor->afterCompletion($request, $response, $this->handler);
                } catch (\Exception $exc) {
                    // TODO: Add logging
                }
            }
        }
    }
public function triggerAfterCompletion ( ServletRequestInterface $ request , ServletResponseInterface $ response , \ Exception $ ex ) { $ interceptors = $ this -> getInterceptors ( ) ; if ( ! empty ( $ interceptors ) ) { for ( $ i = $ this -> interceptorIndex ; $ i >= 0 ; $ i -- ) { $ interceptor = $ interceptors [ $ i ] ; try { $ interceptor -> afterCompletion ( $ request , $ response , $ this -> handler ) ; } catch ( \ Exception $ exc ) { // TODO: Add logging } } } }
Applies afterCompletion methods of registered interceptors
@param ServletRequestInterface  $request  The current request
@param ServletResponseInterface $response The current response
@param \Exception               $ex       Any thrown exception during dispatch process
@return void
Applies afterCompletion methods of registered interceptors