src/Control/HTTPRequestBuilder.php
public static function createFromEnvironment()
    {
        // Clean and update live global variables
        $variables = static::cleanEnvironment(Environment::getVariables());
        Environment::setVariables($variables); // Currently necessary for SSViewer, etc to work

        // Health-check prior to creating environment
        return static::createFromVariables($variables, @file_get_contents('php://input'));
    }
public static function createFromEnvironment()
    {
        // Clean and update live global variables
        $variables = static::cleanEnvironment(Environment::getVariables());
        Environment::setVariables($variables); // Currently necessary for SSViewer, etc to work

        // Health-check prior to creating environment
        return static::createFromVariables($variables, @file_get_contents('php://input'));
    }
public static function createFromEnvironment ( ) { // Clean and update live global variables $ variables = static :: cleanEnvironment ( Environment :: getVariables ( ) ) ; Environment :: setVariables ( $ variables ) ; // Currently necessary for SSViewer, etc to work // Health-check prior to creating environment return static :: createFromVariables ( $ variables , @ file_get_contents ( 'php://input' ) ) ; }
Create HTTPRequest instance from the current environment variables.
May throw errors if request is invalid.

@throws HTTPResponse_Exception
@return HTTPRequest
Create HTTPRequest instance from the current environment variables . May throw errors if request is invalid .