Skip to content

Commit

Permalink
Update queue loading
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewaite committed Dec 14, 2022
1 parent 21b90a6 commit bd49b17
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/BatchQueueServiceProvider.php
Expand Up @@ -20,7 +20,19 @@ class BatchQueueServiceProvider extends ServiceProvider
{
public function register()
{
$this->commands(QueueWorkBatchCommand::class);
$this->app->singleton(
'command.queueawsbatch.work-batch',
function ($app) {
return new QueueWorkBatchCommand(
$app['queue'],
$app['queue.worker'],
$app['Illuminate\Foundation\Exceptions\Handler'],
$app['cache.store']
);
}
);

$this->commands('command.queueawsbatch.work-batch');
}

public function boot()
Expand Down

0 comments on commit bd49b17

Please sign in to comment.