File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
class QueueServiceProvider extends \Illuminate \Queue \QueueServiceProvider
10
10
{
11
+ public function register ()
12
+ {
13
+ $ this ->registerLogger ();
14
+ parent ::register ();
15
+ }
16
+
11
17
protected function registerWorker ()
12
18
{
13
19
$ this ->app ->singleton ('queue.worker ' , function () {
@@ -17,8 +23,14 @@ protected function registerWorker()
17
23
$ this ->app [ExceptionHandler::class],
18
24
$ this ->app ['config ' ]->get ('queue.rateLimits ' ),
19
25
$ this ->app [RateLimiter::class],
20
- $ this ->app [LoggerInterface::class ]
26
+ $ this ->app [' queue.logger ' ]
21
27
);
22
28
});
23
29
}
30
+
31
+ protected function registerLogger () {
32
+ $ this ->app ->singleton ('queue.logger ' , function () {
33
+ return $ this ->app [LoggerInterface::class];
34
+ });
35
+ }
24
36
}
You can’t perform that action at this time.
0 commit comments