8
8
use Illuminate \Cache \Console \ForgetCommand as CacheForgetCommand ;
9
9
use Illuminate \Console \Scheduling \ScheduleFinishCommand ;
10
10
use Illuminate \Console \Scheduling \ScheduleRunCommand ;
11
+ use Illuminate \Console \Scheduling \ScheduleWorkCommand ;
11
12
use Illuminate \Database \Console \DumpCommand ;
12
13
use Illuminate \Database \Console \Migrations \FreshCommand as MigrateFreshCommand ;
13
14
use Illuminate \Database \Console \Migrations \InstallCommand as MigrateInstallCommand ;
21
22
use Illuminate \Database \Console \Seeds \SeederMakeCommand ;
22
23
use Illuminate \Database \Console \WipeCommand ;
23
24
use Illuminate \Queue \Console \BatchesTableCommand ;
25
+ use Illuminate \Queue \Console \ClearCommand as ClearQueueCommand ;
24
26
use Illuminate \Queue \Console \FailedTableCommand ;
25
27
use Illuminate \Queue \Console \FlushFailedCommand as FlushFailedQueueCommand ;
26
28
use Illuminate \Queue \Console \ForgetFailedCommand as ForgetFailedQueueCommand ;
@@ -50,6 +52,7 @@ class ConsoleServiceProvider extends ServiceProvider
50
52
'MigrateReset ' => 'command.migrate.reset ' ,
51
53
'MigrateRollback ' => 'command.migrate.rollback ' ,
52
54
'MigrateStatus ' => 'command.migrate.status ' ,
55
+ 'QueueClear ' => 'command.queue.clear ' ,
53
56
'QueueFailed ' => 'command.queue.failed ' ,
54
57
'QueueFlush ' => 'command.queue.flush ' ,
55
58
'QueueForget ' => 'command.queue.forget ' ,
@@ -61,6 +64,7 @@ class ConsoleServiceProvider extends ServiceProvider
61
64
'Wipe ' => 'command.wipe ' ,
62
65
'ScheduleFinish ' => 'command.schedule.finish ' ,
63
66
'ScheduleRun ' => 'command.schedule.run ' ,
67
+ 'ScheduleWork ' => 'command.schedule.work ' ,
64
68
'SchemaDump ' => 'command.schema.dump ' ,
65
69
];
66
70
@@ -256,6 +260,18 @@ protected function registerMigrateStatusCommand()
256
260
});
257
261
}
258
262
263
+ /**
264
+ * Register the command.
265
+ *
266
+ * @return void
267
+ */
268
+ protected function registerQueueClearCommand ()
269
+ {
270
+ $ this ->app ->singleton ('command.queue.clear ' , function () {
271
+ return new ClearQueueCommand ;
272
+ });
273
+ }
274
+
259
275
/**
260
276
* Register the command.
261
277
*
@@ -436,6 +452,18 @@ protected function registerScheduleRunCommand()
436
452
});
437
453
}
438
454
455
+ /**
456
+ * Register the command.
457
+ *
458
+ * @return void
459
+ */
460
+ protected function registerScheduleWorkCommand ()
461
+ {
462
+ $ this ->app ->singleton ('command.schedule.work ' , function () {
463
+ return new ScheduleWorkCommand ;
464
+ });
465
+ }
466
+
439
467
/**
440
468
* Register the command.
441
469
*
0 commit comments