public function handleRequest($request)
    {
        list ($route, $params) = $request->resolve();
        $this->requestedRoute = $route;
        $result = $this->runAction($route, $params);
        if ($result instanceof Response) {
            return $result;
        } else {
            $response = $this->getResponse();
            $response->exitStatus = $result;

            return $response;
        }
    }
public function handleRequest($request)
    {
        list ($route, $params) = $request->resolve();
        $this->requestedRoute = $route;
        $result = $this->runAction($route, $params);
        if ($result instanceof Response) {
            return $result;
        } else {
            $response = $this->getResponse();
            $response->exitStatus = $result;

            return $response;
        }
    }
public function handleRequest ( $ request ) { list ( $ route , $ params ) = $ request -> resolve ( ) ; $ this -> requestedRoute = $ route ; $ result = $ this -> runAction ( $ route , $ params ) ; if ( $ result instanceof Response ) { return $ result ; } else { $ response = $ this -> getResponse ( ) ; $ response -> exitStatus = $ result ; return $ response ; } }
Handles the specified request.
@param Request $request the request to be handled
@return Response the resulting response
Handles the specified request .