From df984c8f806b8bb072b802fe8e0a3bfb798c8a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20G=C3=BC=C3=A7l=C3=BC?= Date: Sun, 3 Sep 2023 17:06:53 +0300 Subject: [PATCH] ... --- src/Request/IRequest.php | 7 ++++++- src/Request/Request.php | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Request/IRequest.php b/src/Request/IRequest.php index 50beb72..a6d30a9 100644 --- a/src/Request/IRequest.php +++ b/src/Request/IRequest.php @@ -8,7 +8,7 @@ * @author Ali Güçlü (Mirarus) * @link https://github.com/mirarus/bmvc-libs * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version 0.3 + * @version 0.4 */ namespace BMVC\Libs\Request; @@ -198,6 +198,11 @@ public static function inputToPost(); */ public static function input(); + /** + * @return mixed + */ + public static function _input(); + /** * @param string|null $data * @param bool $db_filter diff --git a/src/Request/Request.php b/src/Request/Request.php index 30a5042..93d286e 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -8,7 +8,7 @@ * @author Ali Güçlü (Mirarus) * @link https://github.com/mirarus/bmvc-libs * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version 0.5 + * @version 0.6 */ namespace BMVC\Libs\Request; @@ -492,6 +492,14 @@ public static function input() return json_decode(file_get_contents('php://input', true)); } + /** + * @return mixed + */ + public static function _input() + { + return json_decode(file_get_contents('php://input')); + } + /** * @return void */