diff --git a/composer.json b/composer.json index c74ab25..eaad233 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "license": "MIT", "require": { "php": "^7.4|^8.0", - "adt/background-queue": "^4.22", + "adt/background-queue": "^5.0", "nette/di": "^2.4|^3.0", "nette/schema": "^1.2" }, diff --git a/src/DI/BackgroundQueueExtension.php b/src/DI/BackgroundQueueExtension.php index 740eb96..400be52 100644 --- a/src/DI/BackgroundQueueExtension.php +++ b/src/DI/BackgroundQueueExtension.php @@ -37,7 +37,7 @@ public function getConfigSchema(): Schema 'queue' => Expect::string()->required(), 'bulkSize' => Expect::int(1)->min(1), 'priorities' => Expect::arrayOf(Expect::int()->min(1)->max(999))->default([1])->mergeDefaults(false), - 'connection' => Expect::anyOf('string', Expect::arrayOf('int|string|object', 'string')), + 'connection' => Expect::string(), 'tableName' => Expect::string('background_job'), 'producer' => Expect::string()->nullable(), 'waitingJobExpiration' => Expect::int(1000),