protected function requestFromRequest(Request $request, $changeHistory = true)
    {
        return $this->request($request->getMethod(), $request->getUri(), $request->getParameters(), $request->getFiles(), $request->getServer(), $request->getContent(), $changeHistory);
    }
protected function requestFromRequest(Request $request, $changeHistory = true)
    {
        return $this->request($request->getMethod(), $request->getUri(), $request->getParameters(), $request->getFiles(), $request->getServer(), $request->getContent(), $changeHistory);
    }
protected function requestFromRequest ( Request $ request , $ changeHistory = true ) { return $ this -> request ( $ request -> getMethod ( ) , $ request -> getUri ( ) , $ request -> getParameters ( ) , $ request -> getFiles ( ) , $ request -> getServer ( ) , $ request -> getContent ( ) , $ changeHistory ) ; }
Makes a request from a Request object directly.

@param Request $request       A Request instance
@param bool    $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload())

@return Crawler
Makes a request from a Request object directly .