|
21 | 21 | use Illuminate\Database\Console\Seeds\SeederMakeCommand;
|
22 | 22 | use Illuminate\Database\Console\WipeCommand;
|
23 | 23 | use Illuminate\Queue\Console\BatchesTableCommand;
|
| 24 | +use Illuminate\Queue\Console\ClearCommand as ClearQueueCommand; |
24 | 25 | use Illuminate\Queue\Console\FailedTableCommand;
|
25 | 26 | use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand;
|
26 | 27 | use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
|
@@ -50,6 +51,7 @@ class ConsoleServiceProvider extends ServiceProvider
|
50 | 51 | 'MigrateReset' => 'command.migrate.reset',
|
51 | 52 | 'MigrateRollback' => 'command.migrate.rollback',
|
52 | 53 | 'MigrateStatus' => 'command.migrate.status',
|
| 54 | + 'QueueClear' => 'command.queue.clear', |
53 | 55 | 'QueueFailed' => 'command.queue.failed',
|
54 | 56 | 'QueueFlush' => 'command.queue.flush',
|
55 | 57 | 'QueueForget' => 'command.queue.forget',
|
@@ -256,6 +258,18 @@ protected function registerMigrateStatusCommand()
|
256 | 258 | });
|
257 | 259 | }
|
258 | 260 |
|
| 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 | + |
259 | 273 | /**
|
260 | 274 | * Register the command.
|
261 | 275 | *
|
|
0 commit comments