public function handleRequest(ServerRequestInterface $request)
    {
        $applicationEvent = $this->getApplicationEvent();
        $applicationEvent->setName(self::EVENT_REQUEST_RECEIVED);
        $this->emit($applicationEvent, $request);

        return $applicationEvent->getRequest();
    }
public function handleRequest(ServerRequestInterface $request)
    {
        $applicationEvent = $this->getApplicationEvent();
        $applicationEvent->setName(self::EVENT_REQUEST_RECEIVED);
        $this->emit($applicationEvent, $request);

        return $applicationEvent->getRequest();
    }
public function handleRequest ( ServerRequestInterface $ request ) { $ applicationEvent = $ this -> getApplicationEvent ( ) ; $ applicationEvent -> setName ( self :: EVENT_REQUEST_RECEIVED ) ; $ this -> emit ( $ applicationEvent , $ request ) ; return $ applicationEvent -> getRequest ( ) ; }
Convert request into response.

@param ServerRequestInterface $request
@return ServerRequestInterface
Convert request into response .