10000 Add missing clear queue command to service provider (#1237) · laravel/lumen-framework@102173e · GitHub
[go: up one dir, main page]

Skip to content

Commit 102173e

Browse files
plourdedDominic Plourde
and
Dominic Plourde
authored
Add missing clear queue command to service provider (#1237)
* Add missing clear queue command to service porovider * hotfix: change order of uses to respect ci Co-authored-by: Dominic Plourde <plourded@amotus.ca>
1 parent 1b05a57 commit 102173e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Console/ConsoleServiceProvider.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Illuminate\Database\Console\Seeds\SeederMakeCommand;
2222
use Illuminate\Database\Console\WipeCommand;
2323
use Illuminate\Queue\Console\BatchesTableCommand;
24+
use Illuminate\Queue\Console\ClearCommand as ClearQueueCommand;
2425
use Illuminate\Queue\Console\FailedTableCommand;
2526
use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand;
2627
use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
@@ -50,6 +51,7 @@ class ConsoleServiceProvider extends ServiceProvider
5051
'MigrateReset' => 'command.migrate.reset',
5152
'MigrateRollback' => 'command.migrate.rollback',
5253
'MigrateStatus' => 'command.migrate.status',
54+
'QueueClear' => 'command.queue.clear',
5355
'QueueFailed' => 'command.queue.failed',
5456
'QueueFlush' => 'command.queue.flush',
5557
'QueueForget' => 'command.queue.forget',
@@ -256,6 +258,18 @@ protected function registerMigrateStatusCommand()
256258
});
257259
}
258260

261+
/**
262+
* Register the command.
263+
*
264+
* @return void
265+
*/
266+
protected function registerQueueClearCommand()
267+
{
268+
$this->app->singleton('command.queue.clear', function () {
269+
return new ClearQueueCommand;
270+
});
271+
}
272+
259273
/**
260274
* Register the command.
261275
*

0 commit comments

Comments
 (0)
0