lendable / symfony-messenger-polyfill
Use Symfony Messenger v4.2 with older Symfony versions.
Installs: 23 420
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 17
Forks: 4
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=7.1
- symfony/config: ^3.4 || ^4.0
- symfony/console: ^3.4 || ^4.0
- symfony/dependency-injection: ^3.4 || ^4.0
- symfony/framework-bundle: ^3.4 || >=4.0 < 4.1
- symfony/http-kernel: ^3.4 || ^4.0
- symfony/messenger: ^4.2
Requires (Dev)
- behat/behat: ^3.5
- behat/symfony2-extension: ^2.1
- matthiasnoback/symfony-dependency-injection-test: ^3.0
- phpunit/phpunit: ^7.4
- symfony/property-access: ^3.4 || ^4.0
- symfony/property-info: ^3.4 || ^4.0
- symfony/serializer: ^3.4 || ^4.0
- symfony/stopwatch: ^3.4 || ^4.0
This package is auto-updated.
Last update: 2023-05-02 14:29:24 UTC
README
Allows to use Symfony Messenger with Symfony 3.4 and 4.0.
Documentation
Installation
1. Add dependency with composer
composer require lendable/symfony-messenger-polyfill
2. Register the bundle in your bundles.php
return [ //... Lendable\Polyfill\Symfony\MessengerBundle\MessengerBundle::class => ['all' => true], ];
Configuration
The only important thing is that root key is lendable_polyfill_messenger
.
How to use
Everything is explained in the Symfony Documentation.
If we take this configuration example, instead of writing:
# config/packages/messenger.yaml framework: messenger: routing: 'My\Message\Message': amqp # The name of the defined transport
You would write:
# config/packages/messenger.yaml lendable_polyfill_messenger: routing: 'My\Message\Message': amqp # The name of the defined transport