We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb3271 commit b93e4e0Copy full SHA for b93e4e0
src/QueueServiceProvider.php
@@ -8,6 +8,12 @@
8
9
class QueueServiceProvider extends \Illuminate\Queue\QueueServiceProvider
10
{
11
+ public function register()
12
+ {
13
+ $this->registerLogger();
14
+ parent::register();
15
+ }
16
+
17
protected function registerWorker()
18
19
$this->app->singleton('queue.worker', function () {
@@ -22,8 +28,14 @@ protected function registerWorker()
22
28
$isDownForMaintenance,
23
29
$this->app['config']->get('queue.rateLimits'),
24
30
$this->app[RateLimiter::class],
25
- $this->app[LoggerInterface::class]
31
+ $this->app['queue.logger']
26
32
);
27
33
});
34
}
35
36
+ protected function registerLogger() {
37
+ $this->app->singleton('queue.logger', function () {
38
+ return $this->app[LoggerInterface::class];
39
+ });
40
41
0 commit comments