From dad7a7cb89f51c22203f39f9f486a0c5ba121e51 Mon Sep 17 00:00:00 2001 From: Oliver Stark Date: Wed, 14 Sep 2022 16:15:14 +0200 Subject: [PATCH 1/3] Fix 'Queue must be an application component.' error --- src/Queue/HashedJobQueue.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Queue/HashedJobQueue.php b/src/Queue/HashedJobQueue.php index 859a9e3..a9d8030 100644 --- a/src/Queue/HashedJobQueue.php +++ b/src/Queue/HashedJobQueue.php @@ -9,6 +9,8 @@ use craft\queue\JobInterface as CraftJob; use craft\queue\Queue; use craft\queue\QueueInterface; +use yii\base\InvalidConfigException; +use function RectorPrefix20220501\Symfony\Component\DependencyInjection\Loader\Configurator\param; class HashedJobQueue extends Queue implements QueueInterface { @@ -20,6 +22,8 @@ class HashedJobQueue extends Queue implements QueueInterface private ?string $jobDescription; + public ?string $channel = 'queue'; + public function __construct(Hasher $hasher, $config = []) { parent::__construct($config); From b643dfa5ed6c03c8eb297d0b7d14c0e70c9016af Mon Sep 17 00:00:00 2001 From: Oliver Stark Date: Wed, 14 Sep 2022 16:18:40 +0200 Subject: [PATCH 2/3] 2.0.1 changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7e4b80..b44b33e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes will be documented in this file. +## 2.0.1 - 2022-09-14 + +- Fix `Queue must be an application component.` error + ## 2.0.0 - 2022-05-19 - Craft 4 support From 5c20430f413d45eff89a4a1b1b56434e9b83bae2 Mon Sep 17 00:00:00 2001 From: Oliver Stark Date: Wed, 14 Sep 2022 16:38:21 +0200 Subject: [PATCH 3/3] Oops --- src/Queue/HashedJobQueue.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Queue/HashedJobQueue.php b/src/Queue/HashedJobQueue.php index a9d8030..868f56d 100644 --- a/src/Queue/HashedJobQueue.php +++ b/src/Queue/HashedJobQueue.php @@ -9,8 +9,6 @@ use craft\queue\JobInterface as CraftJob; use craft\queue\Queue; use craft\queue\QueueInterface; -use yii\base\InvalidConfigException; -use function RectorPrefix20220501\Symfony\Component\DependencyInjection\Loader\Configurator\param; class HashedJobQueue extends Queue implements QueueInterface {