Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyangxyz authored Sep 30, 2020
1 parent f602e0c commit 82adb7a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions README.md
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
```

0 comments on commit 82adb7a

Please sign in to comment.