@@ -59,8 +59,8 @@ class ConsoleServiceProvider extends ServiceProvider
5959 'QueueWork ' => 'command.queue.work ' ,
6060 'Seed ' => 'command.seed ' ,
6161 'Wipe ' => 'command.wipe ' ,
62- 'ScheduleFinish ' => ScheduleFinishCommand::class ,
63- 'ScheduleRun ' => ScheduleRunCommand::class ,
62+ 'ScheduleFinish ' => ' command.schedule.finish ' ,
63+ 'ScheduleRun ' => ' command.schedule.run ' ,
6464 'SchemaDump ' => 'command.schema.dump ' ,
6565 ];
6666
@@ -419,7 +419,9 @@ protected function registerWipeCommand()
419419 */
420420 protected function registerScheduleFinishCommand ()
421421 {
422- $ this ->app ->singleton (ScheduleFinishCommand::class);
422+ $ this ->app ->singleton ('command.schedule.finish ' , function () {
423+ return new ScheduleFinishCommand ;
424+ });
423425 }
424426
425427 /**
@@ -429,7 +431,9 @@ protected function registerScheduleFinishCommand()
429431 */
430432 protected function registerScheduleRunCommand ()
431433 {
432- $ this ->app ->singleton (ScheduleRunCommand::class);
434+ $ this ->app ->singleton ('command.schedule.run ' , function () {
435+ return new ScheduleRunCommand ;
436+ });
433437 }
434438
435439 /**
0 commit comments