diff --git a/CHANGELOG.md b/CHANGELOG.md index b44b33e..6288c64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes will be documented in this file. +## 2.0.2 - 2024-01-04 + +- Added extra condition to support the lastest changes in Blitz. + + + ## 2.0.1 - 2022-09-14 - Fix `Queue must be an application component.` error diff --git a/composer.json b/composer.json index 8745ade..4b555d8 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,6 @@ "require": { "php": "^7.4||^8.0", "craftcms/cms": "^4.0.0", - "treeware/plant": "*", "yiisoft/yii2-queue": "^2.3.3" }, "require-dev": { @@ -56,7 +55,6 @@ } }, "extra": { - "treeware": {}, "name": "Relax", "handle": "relax", "hasCpSettings": false, diff --git a/src/Handlers/QueueServiceHandler.php b/src/Handlers/QueueServiceHandler.php index bcd209a..71e29e1 100644 --- a/src/Handlers/QueueServiceHandler.php +++ b/src/Handlers/QueueServiceHandler.php @@ -46,8 +46,16 @@ public function __invoke(): void // Extrawurst for feed-me if ($feedMe = Craft::$app->getPlugins()->getPlugin('feed-me')) { - /** @phpstan-ignore-next-line */ - $feedMe->queue = $queue; + if (property_exists($feedMe, 'queue')) { + $feedMe->queue = $queue; + } + }; + + // Extrawurst for blitz + if ($blitz = Craft::$app->getPlugins()->getPlugin('blitz')) { + if (property_exists($blitz, 'queue')) { + $blitz->queue = $queue; + } }; } }