diff --git a/README.md b/README.md index 9080f31..e830c92 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,65 @@ Install $ composer require visual-craft/work-queue-bundle +Configure +------- +```yaml +##config/packages/visual_craft_work_queue.yaml + +visual_craft_work_queue: + connections: + default: ~ + queues: + test_queue: + connection: default + worker: 'App\BackgroundJob\Worker\TestWorker' +``` + +Create Worker +------- +```php +queueManager = $queueManager; +} +//.. + $this->queueManager->add('mixed payload'); +//.. +``` License ------- diff --git a/composer.json b/composer.json index e758bcf..10e3ca6 100644 --- a/composer.json +++ b/composer.json @@ -9,9 +9,9 @@ }, "require": { "php": ">=7.4.0", - "symfony/framework-bundle": "~5.0", - "symfony/monolog-bundle": "~3.5", - "symfony/console": "~5.0", + "symfony/framework-bundle": "^5.0|^6.0", + "symfony/monolog-bundle": "^3.5", + "symfony/console": "^5.0|^6.0", "visual-craft/work-queue": "^0.1.0" } }