diff --git a/src/IgnitionServiceProvider.php b/src/IgnitionServiceProvider.php index ace3013d..afca5b62 100644 --- a/src/IgnitionServiceProvider.php +++ b/src/IgnitionServiceProvider.php @@ -492,20 +492,30 @@ protected function setupQueue(QueueManager $queue) { // Reset before executing a queue job to make sure the job's log/query/dump recorders are empty. // When using a sync queue this also reports the queued reports from previous exceptions. - $queue->before([$this, 'resetFlare']); + $queue->before(function () { + $this->resetFlare(); + }); // Send queued reports (and reset) after executing a queue job. - $queue->after([$this, 'resetFlare']); + $queue->after(function () { + $this->resetFlare(); + }); // Note: the $queue->looping() event can't be used because it's not triggered on Vapor } protected function setupOctane() { - $this->app['events']->listen(RequestReceived::class, [$this, 'resetFlare']); + $this->app['events']->listen(RequestReceived::class, function () { + $this->resetFlare(); + }); - $this->app['events']->listen(TaskReceived::class, [$this, 'resetFlare']); + $this->app['events']->listen(TaskReceived::class, function () { + $this->resetFlare(); + }); - $this->app['events']->listen(TickReceived::class, [$this, 'resetFlare']); + $this->app['events']->listen(TickReceived::class, function () { + $this->resetFlare(); + }); } }