Download the PHP package retailcrm/symfony-beanstalkd-messenger without Composer
On this page you can find all versions of the php package retailcrm/symfony-beanstalkd-messenger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download retailcrm/symfony-beanstalkd-messenger
More information about retailcrm/symfony-beanstalkd-messenger
Files in retailcrm/symfony-beanstalkd-messenger
Package symfony-beanstalkd-messenger
Short Description Symfony Beanstalkd Messenger Bridge
License MIT
Informations about the package symfony-beanstalkd-messenger
Symfony beanstalkd messenger
Beanstalkd transport for symfony messenger
Installation
composer require retailcrm/symfony-beanstalkd-messenger
Usage
- in the
.envconfig file add the connection credentials:
MESSENGER_TRANSPORT_DSN=beanstalkd://localhost:11300
-
create your messages and message handlers (about messages)
-
configure messenger in
config/packages/messenger.yml, for example: - add transport factory in
config/services.yml
Allowed transport options
-
tube_name- tube name in beanstalkd -
timeout- timeout for receiving jobs from tube. Default - 0 -
ttr- ttr value for jobs. Default - 60 not_send_if_exists- do not send a job to the queue only if such a job is already exist. Default -false
All options are optional, if tube_name not specified will be used default queue default.
The not_send_if_exists option will only work if lock storage is specified. To do this, you need to customize the BeanstalkTransportFactory by adding a call to the setLockStorage method
and add your custom transport factory in config/services.yml
Your lock storage class must implement RetailCrm\Messenger\Beanstalkd\Storage\LockStorageInterface.
All versions of symfony-beanstalkd-messenger with dependencies
php Version >=7.3
pda/pheanstalk Version ^4.0
symfony/messenger Version ^5.0|^6.0