https://github.com/lendable/symfony-messenger-polyfill
Symfony Messenger polyfill bundle that integrates with Symfony v3.4 and v4.0
https://github.com/lendable/symfony-messenger-polyfill
polyfill symfony-bundle symfony-messenger
Last synced: 8 months ago
JSON representation
Symfony Messenger polyfill bundle that integrates with Symfony v3.4 and v4.0
- Host: GitHub
- URL: https://github.com/lendable/symfony-messenger-polyfill
- Owner: Lendable
- License: mit
- Archived: true
- Created: 2018-12-07T10:20:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T14:29:39.000Z (about 3 years ago)
- Last Synced: 2025-01-09T14:39:04.633Z (over 1 year ago)
- Topics: polyfill, symfony-bundle, symfony-messenger
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 17
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Symfony Messenger Polyfill
==========================
Allows to use Symfony Messenger with Symfony 3.4 and 4.0.
[](https://img.shields.io/badge/php-%5E7.1-blue.svg)
[](https://packagist.org/packages/lendable/symfony-messenger-polyfill)
[](https://packagist.org/packages/lendable/symfony-messenger-polyfill)
[](https://travis-ci.org/Lendable/symfony-messenger-polyfill)
[](https://packagist.org/packages/lendable/symfony-messenger-polyfill)
Documentation
-------------
* [Installation](#installation)
* [Configuration](#configuration)
* [How to use](#how-to-use)
## Installation
**1.** Add dependency with composer
```bash
composer require lendable/symfony-messenger-polyfill
```
**2.** Register the bundle in your `bundles.php`
```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](https://symfony.com/doc/current/messenger.html).
If we take [this](https://symfony.com/doc/current/messenger.html#routing) configuration example, instead
of writing:
```yaml
# config/packages/messenger.yaml
framework:
messenger:
routing:
'My\Message\Message': amqp # The name of the defined transport
```
You would write:
```yaml
# config/packages/messenger.yaml
lendable_polyfill_messenger:
routing:
'My\Message\Message': amqp # The name of the defined transport
```