src/Library/HttpFundamental/Request.php
public function guessFromCurrent()
    {
        $this
            ->setUrl(UrlHelper::getRequestUrl())
            ->setProtocol(UrlHelper::getHttpProtocol())
            ->setMethod($_SERVER['REQUEST_METHOD'])
            ->setHeaders($this->getallheaders())
            ->setArguments(isset($_GET) ? $_GET : array())
            ->setData(isset($_POST) ? $_POST : array())
            ->setSession(isset($_SESSION) ? $_SESSION : array())
            ->setFiles(isset($_FILES) ? $_FILES : array())
            ->setCookies(isset($_COOKIE) ? $_COOKIE : array())
            ->setAuthenticationUser(isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : null)
            ->setAuthenticationPassword(isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null)
            ->setAuthenticationType(!empty($_SERVER['PHP_AUTH_DIGEST']) ? 'digest' : 'basic')
            ;
        return $this;
    }
public function guessFromCurrent()
    {
        $this
            ->setUrl(UrlHelper::getRequestUrl())
            ->setProtocol(UrlHelper::getHttpProtocol())
            ->setMethod($_SERVER['REQUEST_METHOD'])
            ->setHeaders($this->getallheaders())
            ->setArguments(isset($_GET) ? $_GET : array())
            ->setData(isset($_POST) ? $_POST : array())
            ->setSession(isset($_SESSION) ? $_SESSION : array())
            ->setFiles(isset($_FILES) ? $_FILES : array())
            ->setCookies(isset($_COOKIE) ? $_COOKIE : array())
            ->setAuthenticationUser(isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : null)
            ->setAuthenticationPassword(isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null)
            ->setAuthenticationType(!empty($_SERVER['PHP_AUTH_DIGEST']) ? 'digest' : 'basic')
            ;
        return $this;
    }
public function guessFromCurrent ( ) { $ this -> setUrl ( UrlHelper :: getRequestUrl ( ) ) -> setProtocol ( UrlHelper :: getHttpProtocol ( ) ) -> setMethod ( $ _SERVER [ 'REQUEST_METHOD' ] ) -> setHeaders ( $ this -> getallheaders ( ) ) -> setArguments ( isset ( $ _GET ) ? $ _GET : array ( ) ) -> setData ( isset ( $ _POST ) ? $ _POST : array ( ) ) -> setSession ( isset ( $ _SESSION ) ? $ _SESSION : array ( ) ) -> setFiles ( isset ( $ _FILES ) ? $ _FILES : array ( ) ) -> setCookies ( isset ( $ _COOKIE ) ? $ _COOKIE : array ( ) ) -> setAuthenticationUser ( isset ( $ _SERVER [ 'PHP_AUTH_USER' ] ) ? $ _SERVER [ 'PHP_AUTH_USER' ] : null ) -> setAuthenticationPassword ( isset ( $ _SERVER [ 'PHP_AUTH_PW' ] ) ? $ _SERVER [ 'PHP_AUTH_PW' ] : null ) -> setAuthenticationType ( ! empty ( $ _SERVER [ 'PHP_AUTH_DIGEST' ] ) ? 'digest' : 'basic' ) ; return $ this ; }
Populate the request object with current HTTP request values

@return  $this
@see     \Library\Helper\Url::getRequestUrl()
Populate the request object with current HTTP request values