Skip to content

Commit bd49b17

Browse files
committed
Update queue loading
1 parent 21b90a6 commit bd49b17

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/BatchQueueServiceProvider.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@ class BatchQueueServiceProvider extends ServiceProvider
2020
{
2121
public function register()
2222
{
23-
$this->commands(QueueWorkBatchCommand::class);
23+
$this->app->singleton(
24+
'command.queueawsbatch.work-batch',
25+
function ($app) {
26+
return new QueueWorkBatchCommand(
27+
$app['queue'],
28+
$app['queue.worker'],
29+
$app['Illuminate\Foundation\Exceptions\Handler'],
30+
$app['cache.store']
31+
);
32+
}
33+
);
34+
35+
$this->commands('command.queueawsbatch.work-batch');
2436
}
2537

2638
public function boot()

0 commit comments

Comments
 (0)