private static function captureHttpRequest()
    {
        $server = $_SERVER;
        $uri = self::getCompleteRequestUri($server);
        $method = strtoupper($server['REQUEST_METHOD']);
        $parameters = self::getParametersFromContentType($server['CONTENT_TYPE'] ?? ContentType::PLAIN);
        if (isset($parameters['__method'])) {
            $method = strtoupper($parameters['__method']);
        }
        self::$httpRequest = new Request($uri, $method, [
            'parameters' => $parameters,
            'cookies' => $_COOKIE,
            'files' => $_FILES,
            'server' => $server
        ]);
    }
private static function captureHttpRequest()
    {
        $server = $_SERVER;
        $uri = self::getCompleteRequestUri($server);
        $method = strtoupper($server['REQUEST_METHOD']);
        $parameters = self::getParametersFromContentType($server['CONTENT_TYPE'] ?? ContentType::PLAIN);
        if (isset($parameters['__method'])) {
            $method = strtoupper($parameters['__method']);
        }
        self::$httpRequest = new Request($uri, $method, [
            'parameters' => $parameters,
            'cookies' => $_COOKIE,
            'files' => $_FILES,
            'server' => $server
        ]);
    }
private static function captureHttpRequest ( ) { $ server = $ _SERVER ; $ uri = self :: getCompleteRequestUri ( $ server ) ; $ method = strtoupper ( $ server [ 'REQUEST_METHOD' ] ) ; $ parameters = self :: getParametersFromContentType ( $ server [ 'CONTENT_TYPE' ] ?? ContentType :: PLAIN ) ; if ( isset ( $ parameters [ '__method' ] ) ) { $ method = strtoupper ( $ parameters [ '__method' ] ) ; } self :: $ httpRequest = new Request ( $ uri , $ method , [ 'parameters' => $ parameters , 'cookies' => $ _COOKIE , 'files' => $ _FILES , 'server' => $ server ] ) ; }
Reads the HTTP data to build corresponding request instance.
Reads the HTTP data to build corresponding request instance .