88use Illuminate \Cache \Console \ForgetCommand as CacheForgetCommand ;
99use Illuminate \Console \Scheduling \ScheduleFinishCommand ;
1010use Illuminate \Console \Scheduling \ScheduleRunCommand ;
11+ use Illuminate \Console \Scheduling \ScheduleWorkCommand ;
1112use Illuminate \Database \Console \DumpCommand ;
1213use Illuminate \Database \Console \Migrations \FreshCommand as MigrateFreshCommand ;
1314use Illuminate \Database \Console \Migrations \InstallCommand as MigrateInstallCommand ;
2122use Illuminate \Database \Console \Seeds \SeederMakeCommand ;
2223use Illuminate \Database \Console \WipeCommand ;
2324use Illuminate \Queue \Console \BatchesTableCommand ;
25+ use Illuminate \Queue \Console \ClearCommand as ClearQueueCommand ;
2426use Illuminate \Queue \Console \FailedTableCommand ;
2527use Illuminate \Queue \Console \FlushFailedCommand as FlushFailedQueueCommand ;
2628use Illuminate \Queue \Console \ForgetFailedCommand as ForgetFailedQueueCommand ;
@@ -50,6 +52,7 @@ class ConsoleServiceProvider extends ServiceProvider
5052 'MigrateReset ' => 'command.migrate.reset ' ,
5153 'MigrateRollback ' => 'command.migrate.rollback ' ,
5254 'MigrateStatus ' => 'command.migrate.status ' ,
55+ 'QueueClear ' => 'command.queue.clear ' ,
5356 'QueueFailed ' => 'command.queue.failed ' ,
5457 'QueueFlush ' => 'command.queue.flush ' ,
5558 'QueueForget ' => 'command.queue.forget ' ,
@@ -61,6 +64,7 @@ class ConsoleServiceProvider extends ServiceProvider
6164 'Wipe ' => 'command.wipe ' ,
6265 'ScheduleFinish ' => 'command.schedule.finish ' ,
6366 'ScheduleRun ' => 'command.schedule.run ' ,
67+ 'ScheduleWork ' => 'command.schedule.work ' ,
6468 'SchemaDump ' => 'command.schema.dump ' ,
6569 ];
6670
@@ -256,6 +260,18 @@ protected function registerMigrateStatusCommand()
256260 });
257261 }
258262
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+
259275 /**
260276 * Register the command.
261277 *
@@ -436,6 +452,18 @@ protected function registerScheduleRunCommand()
436452 });
437453 }
438454
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+
439467 /**
440468 * Register the command.
441469 *
0 commit comments