Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
mirarus committed Sep 3, 2023
1 parent 2d32939 commit df984c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Request/IRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Ali Güçlü (Mirarus) <[email protected]>
* @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;
Expand Down Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion src/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Ali Güçlü (Mirarus) <[email protected]>
* @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;
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit df984c8

Please sign in to comment.