| Conditions | 1 |
| Paths | 1 |
| Total Lines | 32 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function handle(Request $request, Closure $next) |
||
| 26 | { |
||
| 27 | $response = $next($request); |
||
| 28 | |||
| 29 | $output = new Output($request, $response); |
||
| 30 | |||
| 31 | $output->newRequest(); |
||
| 32 | $output->spaceLine(); |
||
| 33 | |||
| 34 | $output->header("REQUEST INFO"); |
||
| 35 | $output->endpoint(); |
||
| 36 | $output->version(); |
||
| 37 | $output->ip(); |
||
| 38 | $output->format(); |
||
| 39 | $output->spaceLine(); |
||
| 40 | |||
| 41 | $output->header("USER INFO"); |
||
| 42 | $output->userInfo(); |
||
| 43 | $output->spaceLine(); |
||
| 44 | |||
| 45 | $output->header("REQUEST DATA"); |
||
| 46 | $output->requestData(); |
||
| 47 | $output->spaceLine(); |
||
| 48 | |||
| 49 | $output->header("RESPONSE DATA"); |
||
| 50 | $output->responseData(); |
||
| 51 | $output->spaceLine(); |
||
| 52 | |||
| 53 | (new RequestsLogger())->releaseOutput($output); |
||
| 54 | |||
| 55 | return $response; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |