-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Messenger Version Control | ||
|
||
![CodeStyle](https://github.com/fjogeleit/prometheus-messenger-middleware/workflows/CodeStyle/badge.svg) | ||
|
||
A Simple Bunlde to version your Symfony Messenger messages. | ||
|
||
* Versionning of a message | ||
* Requeuing consumers that has different version with the concerned message | ||
|
||
## Dependencies | ||
* PHP >= 7.4 | ||
* symfony/messenger | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require jhyangxyz/messenger-version-control | ||
``` | ||
|
||
## Usage | ||
|
||
Configure this Middleware to your MessageBus | ||
|
||
### Symfony Basic Example | ||
|
||
#### Register the Bundle if not done automaticaly | ||
|
||
```yaml | ||
<?php | ||
|
||
return [ | ||
..., | ||
Jhyangxyz\MessengerVersionControl\JhyangxyzMessengerVersionControlBundle::class => ['all' => true], | ||
]; | ||
|
||
``` | ||
|
||
#### Configure Middleware | ||
|
||
```yaml | ||
framework: | ||
messenger: | ||
buses: | ||
message.bus.commands: | ||
middleware: | ||
- jhyangxyz.messenger_version_control.middleware.version_checker_middleware | ||
``` |