Download the PHP package tomatom/jobqueuebundle without Composer
On this page you can find all versions of the php package tomatom/jobqueuebundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomatom/jobqueuebundle
More information about tomatom/jobqueuebundle
Files in tomatom/jobqueuebundle
Package jobqueuebundle
Short Description JMSJobQueueBundle alternative for Symfony 6+
License MIT
Informations about the package jobqueuebundle
JobQueueBundle
Symfony Bundle which aims to replace JMSJobQueueBundle console commands scheduling, using Symfony messenger.
Dependencies:
- php: >=8.1
- doctrine/doctrine-bundle: ^2
- doctrine/orm: ^2|^3
- symfony/framework-bundle: ^6.4
- symfony/messenger: ^6.4
- symfony/process: ^6.4
- symfony/translation: ^6.4
- twig/twig: ^3
Installation:
Configuration:
config/bundles.php:
config/routes.yaml:
config/packages/messenger.yaml:
You can create own transport for the job messages - or just use async transport
Update your database so the __'job_queue'__ table is created
or via migrations if you are using them.
Usage:
Manually creating the jobs in your application:
The function createCommandJob from CommandJobFactory accepts:
- command name,
- command parameters,
- ID of related entity (optional)
- Name of related entity class - self::class (optional)
and returns ID of the created job, for example:
Creating jobs via the browser interface:
On the url /command you can schedule all commands from your application (Symfony ones included):
On the url /job/list you can see all your jobs
On the url /job/{id} you can see the detail of each job
Note - the design will probably change for the better, but you can create your own.
Extending the templates can be done like this:
To change or add translations for a new locale, use those translation variables in your translations/messages.{locale}.yaml:
(Currently there are only translations for en and cs locales)
TODO:
Add configuration for things such as table name
Contributing:
Feel free to open any issues or pull requests if you find something wrong or missing what you'd like the bundle to have!
All versions of jobqueuebundle with dependencies
doctrine/doctrine-bundle Version ^2
doctrine/orm Version ^2|^3
symfony/framework-bundle Version ^6.4
symfony/messenger Version ^6.4
symfony/process Version ^6.4
symfony/translation Version ^6.4
twig/twig Version ^3