Skip to content

Commit

Permalink
fix: silly boy, dont resolve in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 28, 2023
1 parent 1c8af8c commit ecf17ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Api/Controller/ShowQueueStatsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class ShowQueueStatsController implements RequestHandlerInterface
public function __construct(Queue $queue, SettingsRepositoryInterface $settings)
{
$this->queue = $queue;
$this->failer = resolve('queue.failer');
$this->settings = $settings;
}

Expand All @@ -53,6 +52,8 @@ public function handle(ServerRequestInterface $request): ResponseInterface
throw new ModelNotFoundException();
}

$this->failer = resolve('queue.failer');

/** @var DatabaseQueue $queue */
$queue = $this->queue;

Expand Down

0 comments on commit ecf17ff

Please sign in to comment.