Request service

pull/8/head
sundowndev 2018-07-22 02:31:32 +02:00
parent 17007e73cd
commit e305973407
1 changed files with 15 additions and 0 deletions

View File

@ -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) ?? [];
}
}