Request service
parent
17007e73cd
commit
e305973407
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
/**
|
||||
* Class JsonResponse
|
||||
* @package App\Service
|
||||
*/
|
||||
class Request
|
||||
{
|
||||
public function getContentAsArray()
|
||||
{
|
||||
return $content = json_decode(trim(file_get_contents("php://input")), true) ?? [];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue