File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ class MonitorCommand extends Command
3838 */
3939 public function __construct (
4040 protected Factory $ manager ,
41- protected EventDispatcherInterface $ events
41+ protected EventDispatcherInterface $ events ,
42+ protected ConfigInterface $ config ,
4243 ) {
4344 parent ::__construct ();
4445 }
@@ -66,7 +67,7 @@ protected function parseQueues($queues): Collection
6667
6768 if (! isset ($ queue )) {
6869 $ queue = $ connection ;
69- $ connection = $ this ->app -> get (ConfigInterface::class) ->get ('queue.default ' );
70+ $ connection = $ this ->config ->get ('queue.default ' );
7071 }
7172
7273 return [
Original file line number Diff line number Diff line change 1414use Hypervel \Queue \Events \JobRetryRequested ;
1515use Hypervel \Queue \Failed \FailedJobProviderInterface ;
1616use Hypervel \Support \Traits \HasLaravelStyleCommand ;
17+ use Psr \Container \ContainerInterface ;
1718use Psr \EventDispatcher \EventDispatcherInterface ;
1819use RuntimeException ;
1920use stdClass ;
@@ -39,6 +40,7 @@ class RetryCommand extends Command
3940 * Create a new queue restart command.
4041 */
4142 public function __construct (
43+ protected ContainerInterface $ app ,
4244 protected FailedJobProviderInterface $ failer
4345 ) {
4446 parent ::__construct ();
You can’t perform that action at this time.
0 commit comments