From ed1a86f082f422ebde34c20a9813664f12122ce4 Mon Sep 17 00:00:00 2001 From: nervo Date: Thu, 25 Oct 2018 10:42:26 +0200 Subject: [PATCH] Fix request passed as mail subject --- Listener/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Listener/Notifier.php b/Listener/Notifier.php index c0d6351..69d5b8c 100644 --- a/Listener/Notifier.php +++ b/Listener/Notifier.php @@ -339,7 +339,7 @@ public function createMailAndSend($exception, Request $request = null, $context 'command_input' => $commandInput, )); - if ($this->request) { + if ($request) { $subject = '[' . $request->headers->get('host') . '] Error ' . $exception->getStatusCode() . ': ' . $exception->getMessage(); } elseif ($this->command) { $subject = '[' . $this->command->getName() . '] Error ' . $exception->getStatusCode() . ': ' . $exception->getMessage();