protected function dispatch($request, $response)
    {
        $this->setRequest($request);
        $this->setResponse($response);
        if (!$this->responder) {
            $this->responder = Respond::getResponder();
        }
        return $this->_execInternalMethods();
    }
protected function dispatch($request, $response)
    {
        $this->setRequest($request);
        $this->setResponse($response);
        if (!$this->responder) {
            $this->responder = Respond::getResponder();
        }
        return $this->_execInternalMethods();
    }
protected function dispatch ( $ request , $ response ) { $ this -> setRequest ( $ request ) ; $ this -> setResponse ( $ response ) ; if ( ! $ this -> responder ) { $ this -> responder = Respond :: getResponder ( ) ; } return $ this -> _execInternalMethods ( ) ; }
call this dispatch method to respond.

@param ServerRequestInterface $request
@param ResponseInterface      $response
@return ResponseInterface|null
call this dispatch method to respond .