File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,7 @@ protected function registerQueueListenCommand()
681
681
*/
682
682
protected function registerQueueMonitorCommand ()
683
683
{
684
- $ this ->app ->singleton (' command.queue.monitor ' , function ($ app ) {
684
+ $ this ->app ->singleton (QueueMonitorCommand::class , function ($ app ) {
685
685
return new QueueMonitorCommand ($ app ['queue ' ], $ app ['events ' ]);
686
686
});
687
687
}
@@ -705,7 +705,7 @@ protected function registerQueuePruneBatchesCommand()
705
705
*/
706
706
protected function registerQueuePruneFailedJobsCommand ()
707
707
{
708
- $ this ->app ->singleton (' command.queue.prune-failed-jobs ' , function () {
708
+ $ this ->app ->singleton (QueuePruneFailedJobsCommand::class , function () {
709
709
return new QueuePruneFailedJobsCommand ;
710
710
});
711
711
}
Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ class MonitorCommand extends Command
19
19
{queues : The names of the queues to monitor}
20
20
{--max=1000 : The maximum number of jobs that can be on the queue before an event is dispatched} ' ;
21
21
22
+ /**
23
+ * The name of the console command.
24
+ *
25
+ * This name is used to identify the command during lazy loading.
26
+ *
27
+ * @var string|null
28
+ */
29
+ protected static $ defaultName = 'queue:monitor ' ;
30
+
22
31
/**
23
32
* The console command description.
24
33
*
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ class PruneFailedJobsCommand extends Command
16
16
protected $ signature = 'queue:prune-failed
17
17
{--hours=24 : The number of hours to retain failed jobs data} ' ;
18
18
19
+ /**
20
+ * The name of the console command.
21
+ *
22
+ * This name is used to identify the command during lazy loading.
23
+ *
24
+ * @var string|null
25
+ */
26
+ protected static $ defaultName = 'queue:prune-failed ' ;
27
+
19
28
/**
20
29
* The console command description.
21
30
*
You can’t perform that action at this time.
0 commit comments