diff --git a/src/queue/src/Console/MonitorCommand.php b/src/queue/src/Console/MonitorCommand.php index d723fb3d8..50a719c1b 100644 --- a/src/queue/src/Console/MonitorCommand.php +++ b/src/queue/src/Console/MonitorCommand.php @@ -38,7 +38,8 @@ class MonitorCommand extends Command */ public function __construct( protected Factory $manager, - protected EventDispatcherInterface $events + protected EventDispatcherInterface $events, + protected ConfigInterface $config, ) { parent::__construct(); } @@ -66,7 +67,7 @@ protected function parseQueues($queues): Collection if (! isset($queue)) { $queue = $connection; - $connection = $this->app->get(ConfigInterface::class)->get('queue.default'); + $connection = $this->config->get('queue.default'); } return [ diff --git a/src/queue/src/Console/RetryCommand.php b/src/queue/src/Console/RetryCommand.php index e6be6062c..b3a1e952d 100644 --- a/src/queue/src/Console/RetryCommand.php +++ b/src/queue/src/Console/RetryCommand.php @@ -14,6 +14,7 @@ use Hypervel\Queue\Events\JobRetryRequested; use Hypervel\Queue\Failed\FailedJobProviderInterface; use Hypervel\Support\Traits\HasLaravelStyleCommand; +use Psr\Container\ContainerInterface; use Psr\EventDispatcher\EventDispatcherInterface; use RuntimeException; use stdClass; @@ -39,6 +40,7 @@ class RetryCommand extends Command * Create a new queue restart command. */ public function __construct( + protected ContainerInterface $app, protected FailedJobProviderInterface $failer ) { parent::__construct();