I would thank Symfonycast for this super tuto about Messenger Component. Link to Tuto: Messenger! Queue work for Later course on SymfonyCasts.
- Clone or download the repository.
- Download Composer dependencies :
composer install
- Setup the Database :
php bin/console doctrine:database:create php bin/console doctrine:migrations:migrate
- Compile Webpack Encore Assets :
yarn install yarn encore dev
- Run the application :
php bin/console s:r
- Run the worker :
php bin/console messenger:consume -vv async