| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 58 | protected function logRequest() |
||
| 59 | { |
||
| 60 | if (!$this->logger) { |
||
| 61 | return false; |
||
| 62 | } |
||
| 63 | $routeInfo = $this->request->getAttribute('routeInfo'); |
||
| 64 | $route = $this->request->getAttribute('route'); |
||
| 65 | $this->logger->info('************'); |
||
| 66 | $this->logger->info('* REQUEST: ' . $route->getCallable()[1]); |
||
| 67 | $this->logger->info('* ' . $route->getMethods()[0] . ' ' . $routeInfo['request'][1]); |
||
| 68 | $this->logger->info('* BODY: ' . json_encode($this->request->getParsedBody())); |
||
| 69 | } |
||
| 70 | |||
| 85 |