From 9709c97be215cb2310eb665d2e8538c071ac030b Mon Sep 17 00:00:00 2001 From: Memtoko Date: Wed, 19 Nov 2014 20:47:47 +0700 Subject: [PATCH 1/2] fix issue Queue Worker calling undefined method from the exceptions handler --- src/Illuminate/Queue/Worker.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index e7245f86ab3..c886dacc0d9 100755 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -112,7 +112,7 @@ protected function runNextJobForDaemon($connectionName, $queue, $delay, $sleep, } catch (\Exception $e) { - if ($this->exceptions) $this->exceptions->handleException($e); + if ($this->exceptions) $this->exceptions->report($e); } } @@ -319,10 +319,10 @@ protected function queueShouldRestart($lastRestart) /** * Set the exception handler to use in Daemon mode. * - * @param \Illuminate\Exception\Handler $handler + * @param \Illuminate\Contracts\Debug\ExceptionHandler $handler * @return void */ - public function setDaemonExceptionHandler($handler) + public function setDaemonExceptionHandler(ExceptionHandler $handler) { $this->exceptions = $handler; } From bd954a5a0f31f4c7c5fa62fad7d131881931c0d7 Mon Sep 17 00:00:00 2001 From: Memtoko Date: Wed, 19 Nov 2014 21:02:51 +0700 Subject: [PATCH 2/2] forget to use the exception contract --- src/Illuminate/Queue/Worker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index c886dacc0d9..1b7d4f14cb3 100755 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -4,6 +4,7 @@ use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Queue\Failed\FailedJobProviderInterface; use Illuminate\Contracts\Cache\Repository as CacheContract; +use Illuminate\Contracts\Debug\ExceptionHandler; class Worker {