/** * Cached values for request * * @return array|null */ public function getRequestData() { parent::getRequestData(); if ($this->getRequest() instanceof Request) { if (in_array($this->getRequest()->getMethod(), array('PUT', 'DELETE'))) { $this->requestData[$this->getRequest()->getMethod()] = $this->getRequest()->request->all(); } } return $this->requestData; }
protected function report(ReportInterface $report, $level = null) { $data = $this->buildBaseData(); $data['body'][$report->getType()] = $report->getReport(); if (!is_null($level)) { $data['level'] = strtolower($level); } $data['request'] = $this->environment->getRequestData(); $data['server'] = $this->environment->getServerData(); $data['person'] = $this->environment->getPersonData(); $data['custom'] = $this->environment->getCustomData(); $this->sanitizeUTF8($data); $payload = $this->buildPayload($data); $this->sendPayload($payload); return $data['uuid']; }