Embryo/Http/Factory/ServerRequestFactory.php
public function createServerRequestFromServer(): ServerRequestInterface
        {
            $method  = $_SERVER['REQUEST_METHOD'];
            $uri     = (new UriFactory)->createUriFromServer($_SERVER);
            $files   = (new UploadedFileFactory)->createUploadedFileFromServer($_FILES);
            
            $request = $this->createServerRequest($method, $uri, $_SERVER);
            $request = $request->withQueryParams($_GET);
            $request = $request->withParsedBody($_POST);
            $request = $request->withCookieParams($_COOKIE);
            $request = $request->withUploadedFiles($files);
            return $request;
        }
public function createServerRequestFromServer(): ServerRequestInterface
        {
            $method  = $_SERVER['REQUEST_METHOD'];
            $uri     = (new UriFactory)->createUriFromServer($_SERVER);
            $files   = (new UploadedFileFactory)->createUploadedFileFromServer($_FILES);
            
            $request = $this->createServerRequest($method, $uri, $_SERVER);
            $request = $request->withQueryParams($_GET);
            $request = $request->withParsedBody($_POST);
            $request = $request->withCookieParams($_COOKIE);
            $request = $request->withUploadedFiles($files);
            return $request;
        }
public function createServerRequestFromServer ( ) : ServerRequestInterface { $ method = $ _SERVER [ 'REQUEST_METHOD' ] ; $ uri = ( new UriFactory ) -> createUriFromServer ( $ _SERVER ) ; $ files = ( new UploadedFileFactory ) -> createUploadedFileFromServer ( $ _FILES ) ; $ request = $ this -> createServerRequest ( $ method , $ uri , $ _SERVER ) ; $ request = $ request -> withQueryParams ( $ _GET ) ; $ request = $ request -> withParsedBody ( $ _POST ) ; $ request = $ request -> withCookieParams ( $ _COOKIE ) ; $ request = $ request -> withUploadedFiles ( $ files ) ; return $ request ; }
Creates a new server-side request from server.

@return ServerRequestInterface
Creates a new server - side request from server .