Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit 5bb7e9b

Browse files
Moved command registration to the boot method
1 parent ef3e7a1 commit 5bb7e9b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/AsyncServiceProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ class AsyncServiceProvider extends ServiceProvider
2222
*/
2323
public function boot()
2424
{
25-
$manager = $this->app['queue'];
26-
$this->registerAsyncConnector($manager);
25+
$this->registerAsyncConnector($this->app['queue']);
26+
27+
$this->commands('command.queue.async');
2728
}
2829

2930
/**
@@ -48,8 +49,6 @@ protected function registerAsyncCommand($app)
4849
$app['command.queue.async'] = $app->share(function ($app) {
4950
return new AsyncCommand();
5051
});
51-
52-
$this->commands('command.queue.async');
5352
}
5453

5554
/**

0 commit comments

Comments
 (0)