|
@@ -9,13 +9,6 @@ class Request {
|
|
|
*/
|
|
|
public static $route;
|
|
|
|
|
|
- /**
|
|
|
- * The JSON payload for applications using Backbone.js or similar.
|
|
|
- *
|
|
|
- * @var object
|
|
|
- */
|
|
|
- public static $json;
|
|
|
-
|
|
|
/**
|
|
|
* The Symfony HttpFoundation Request instance.
|
|
|
*
|
|
@@ -79,18 +72,6 @@ class Request {
|
|
|
return static::foundation()->headers->all();
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Get the JSON payload for the request.
|
|
|
- *
|
|
|
- * @return object
|
|
|
- */
|
|
|
- public static function json()
|
|
|
- {
|
|
|
- if ( ! is_null(static::$json)) return static::$json;
|
|
|
-
|
|
|
- return static::$json = json_decode(static::foundation()->getContent());
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Get an item from the $_SERVER array.
|
|
|
*
|