src/Web/Servlet/HandlerExecutionChain.php
public function applyPreHandle(ServletRequestInterface $request, ServletResponseInterface $response)
    {
        $interceptors = $this->getInterceptors();
        if (!empty($interceptors)) {
            for ($i = 0; $i < count($interceptors); $i++) {
                $interceptor = $interceptors[$i];
                if (!$interceptor->preHandle($request, $response, $this->handler)) {
                    $this->triggerAfterCompletion($request, $response, null);
                    return false;
                }
                $this->interceptorIndex = $i;
            }
        }
        return true;
    }
public function applyPreHandle(ServletRequestInterface $request, ServletResponseInterface $response)
    {
        $interceptors = $this->getInterceptors();
        if (!empty($interceptors)) {
            for ($i = 0; $i < count($interceptors); $i++) {
                $interceptor = $interceptors[$i];
                if (!$interceptor->preHandle($request, $response, $this->handler)) {
                    $this->triggerAfterCompletion($request, $response, null);
                    return false;
                }
                $this->interceptorIndex = $i;
            }
        }
        return true;
    }
public function applyPreHandle ( ServletRequestInterface $ request , ServletResponseInterface $ response ) { $ interceptors = $ this -> getInterceptors ( ) ; if ( ! empty ( $ interceptors ) ) { for ( $ i = 0 ; $ i < count ( $ interceptors ) ; $ i ++ ) { $ interceptor = $ interceptors [ $ i ] ; if ( ! $ interceptor -> preHandle ( $ request , $ response , $ this -> handler ) ) { $ this -> triggerAfterCompletion ( $ request , $ response , null ) ; return false ; } $ this -> interceptorIndex = $ i ; } } return true ; }
Apply preHandle methods of registered interceptors
@param ServletRequestInterface  $request  The current request
@param ServletResponseInterface $response The current response
@return boolean
Apply preHandle methods of registered interceptors