Total Complexity | 1 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class Service extends Controller |
||
25 | { |
||
26 | /** |
||
27 | * Service::index |
||
28 | */ |
||
29 | public function index() |
||
30 | { |
||
31 | $headers = apache_request_headers(); |
||
32 | |||
33 | $this->sendPayload( |
||
34 | [ |
||
35 | 'request' => [ |
||
36 | 'method' => input()->server('REQUEST_METHOD'), |
||
37 | 'time' => input()->server('REQUEST_TIME'), |
||
38 | 'uri' => input()->server('REQUEST_URI'), |
||
39 | 'agent' => input()->server('HTTP_USER_AGENT'), |
||
40 | 'authorization' => input()->server('HTTP_AUTHORIZATION') |
||
41 | ], |
||
42 | 'headers' => $headers, |
||
43 | 'get' => $_GET, |
||
44 | 'post' => $_POST, |
||
45 | 'payload' => globals()->offsetGet('payload') |
||
46 | ] |
||
49 | } |