mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-15 04:22:25 +03:00
34 lines
926 B
PHP
34 lines
926 B
PHP
<?php
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
*
|
|
* @package EasyAppointments
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
* @link http://easyappointments.org
|
|
* @since v1.2.0
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
namespace EA\Engine\Api\V1;
|
|
|
|
/**
|
|
* Request Class
|
|
*
|
|
* This class handles the common request handling before the data are manipulated and
|
|
* returned back with the Response class.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
class Request {
|
|
/**
|
|
* Get request body as an associative array.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function get_body()
|
|
{
|
|
return json_decode(file_get_contents('php://input'), TRUE);
|
|
}
|
|
}
|