Skip to content

Commit

Permalink
Merge pull request #8 from smart-gamma/fix-process-request-error
Browse files Browse the repository at this point in the history
Fix process error with no request
  • Loading branch information
o-borovets authored Apr 6, 2020
2 parents f65c908 + abe6c19 commit 73e7910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ErrorsBundle/Manager/ErrorsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ public function proceedErrors()
$error->setUrl($request->getPathInfo());
$error->setReferrer($request->headers->get('referer', ''));
$error->setGlobalVars($request->server->all());
$error->setRequestContent($request->getContent());
} else {
$error->setUrl('');
$error->setReferrer('');
$error->setGlobalVars([]);
$error->setRequestContent('');
}
$error->setBaseHost($this->baseHost);
$error->setHostName(gethostname());
$error->setRequestContent($request->getContent());

$token = $this->tokenStorage->getToken();
if (null !== $token) {
Expand Down

0 comments on commit 73e7910

Please sign in to comment.