8000 Add missing Schedule:work command (#1243) · laravel/lumen-framework@be6f8f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit be6f8f3

Browse files
plourdedDominic Plourde
andauthored
Add missing Schedule:work command (#1243)
Co-authored-by: Dominic Plourde <plourded@amotus.ca>
1 parent 102173e commit be6f8f3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Console/ConsoleServiceProvider.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Illuminate\Cache\Console\ForgetCommand as CacheForgetCommand;
99
use Illuminate\Console\Scheduling\ScheduleFinishCommand;
1010
use Illuminate\Console\Scheduling\ScheduleRunCommand;
11+
use Illuminate\Console\Scheduling\ScheduleWorkCommand;
1112
use Illuminate\Database\Console\DumpCommand;
1213
use Illuminate\Database\Console\Migrations\FreshCommand as MigrateFreshCommand;
1314
use Illuminate\Database\Console\Migrations\InstallCommand as MigrateInstallCommand;
@@ -63,6 +64,7 @@ class ConsoleServiceProvider extends ServiceProvider
6364
'Wipe' => 'command.wipe',
6465
'ScheduleFinish' => ScheduleFinishCommand::class,
6566
'ScheduleRun' => ScheduleRunCommand::class,
67+
'ScheduleWork' => ScheduleWorkCommand::class,
6668
'SchemaDump' => 'command.schema.dump',
6769
];
6870

@@ -446,6 +448,16 @@ protected function registerScheduleRunCommand()
446448
$this->app->singleton(ScheduleRunCommand::class);
447449
}
448450

451+
/**
452+
* Register the command.
453+
*
454+
* @return void
455+
*/
456+
protected function registerScheduleWorkCommand()
457+
{
458+
$this->app->singleton(ScheduleWorkCommand::class);
459+
}
460+
449461
/**
450462
* Register the command.
451463
*

0 commit comments

Comments
 (0)
0