Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macpaw/symfony-messenger-bundle
Symfony Messenger Bundle
https://github.com/macpaw/symfony-messenger-bundle
backend macpaw symfony
Last synced: about 1 month ago
JSON representation
Symfony Messenger Bundle
- Host: GitHub
- URL: https://github.com/macpaw/symfony-messenger-bundle
- Owner: MacPaw
- Created: 2024-02-09T10:40:54.000Z (11 months ago)
- Default Branch: develop
- Last Pushed: 2024-06-04T10:57:55.000Z (7 months ago)
- Last Synced: 2024-08-11T09:23:43.818Z (4 months ago)
- Topics: backend, macpaw, symfony
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Symfony Messenger Bundle
The `SymfonyMessengerBundle` offers a suite of middleware extensions designed to enhance the functionality of the Symfony Messenger component.## Installation
Use Composer to install the bundle:
```
composer require macpaw/symfony-messenger-bundle
```## Applications that don't use Symfony Flex
Enable the bundle by adding it to the list of registered bundles in ```config/bundles.php``````
// config/bundles.php
['all' => true],
// ...
];
```## Add middlewares to messenger component
See https://symfony.com/doc/current/messenger.html#messenger_middleware
```config/packages/messenger.yaml```
Example:
```
# config/packages/messenger.yaml
framework:
messenger:
buses:
messenger.bus.default:
# disable the default middleware
default_middleware: falsemiddleware:
# use and configure parts of the default middleware you want
- 'add_bus_name_stamp_middleware': ['messenger.bus.default']# add your own services that implement Symfony\Component\Messenger\Middleware\MiddlewareInterface
- 'Macpaw\SymfonyMessengerBundle\Middleware\DoctrineTransactionMiddleware'
```