|
@@ -70,16 +70,6 @@ class Request
|
|
|
|
|
|
static protected $formats;
|
|
|
|
|
|
- /**
|
|
|
- * Creates a new request with values from PHP's super globals.
|
|
|
- *
|
|
|
- * @return Request A new request
|
|
|
- */
|
|
|
- static public function fromGlobals()
|
|
|
- {
|
|
|
- return new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Constructor.
|
|
|
*
|
|
@@ -129,6 +119,16 @@ class Request
|
|
|
$this->format = null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Creates a new request with values from PHP's super globals.
|
|
|
+ *
|
|
|
+ * @return Request A new request
|
|
|
+ */
|
|
|
+ static public function createfromGlobals()
|
|
|
+ {
|
|
|
+ return new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Creates a Request based on a given URI and configuration.
|
|
|
*
|