original_string: public static function createFromBase(SymfonyRequest $request)
      {
          if ($request instanceof static) {
              return $request;
          }
  
          $content = $request->content;
  
          $newRequest = (new static)->duplicate(
              $request->query->all(), $request->request->all(), $request->attributes->all(),
              $request->cookies->all(), $request->files->all(), $request->server->all()
          );
  
          $newRequest->headers->replace($request->headers->all());
  
          $newRequest->content = $content;
  
          $newRequest->request = $newRequest->getInputSource();
  
          return $newRequest;
      }
code: public static function createFromBase(SymfonyRequest $request)
      {
          if ($request instanceof static) {
              return $request;
          }
  
          $content = $request->content;
  
          $newRequest = (new static)->duplicate(
              $request->query->all(), $request->request->all(), $request->attributes->all(),
              $request->cookies->all(), $request->files->all(), $request->server->all()
          );
  
          $newRequest->headers->replace($request->headers->all());
  
          $newRequest->content = $content;
  
          $newRequest->request = $newRequest->getInputSource();
  
          return $newRequest;
      }
code_tokens: public static function createFromBase ( SymfonyRequest $ request ) { if ( $ request instanceof static ) { return $ request ; } $ content = $ request -> content ; $ newRequest = ( new static ) -> duplicate ( $ request -> query -> all ( ) , $ request -> request -> all ( ) , $ request -> attributes -> all ( ) , $ request -> cookies -> all ( ) , $ request -> files -> all ( ) , $ request -> server -> all ( ) ) ; $ newRequest -> headers -> replace ( $ request -> headers -> all ( ) ) ; $ newRequest -> content = $ content ; $ newRequest -> request = $ newRequest -> getInputSource ( ) ; return $ newRequest ; }
docstring: Create an Illuminate request from a Symfony instance.
  
  @param  \Symfony\Component\HttpFoundation\Request  $request
  @return static
docstring_tokens: Create an Illuminate request from a Symfony instance .