Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lctrs committed Oct 6, 2019
1 parent 60ea12b commit fc4f5fa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/bookdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
{"event_store": "event_store.md"},
{"projection_manager": "projection_manager.md"},
{"event_store_bus_bridge": "event_store_bus_bridge.md"},
{"configuration_reference": "configuration_reference.md"}
{"configuration_reference": "configuration_reference.md"},
{"messenger": "messenger.md"}
],
"target": "./html",
"tocDepth": 2,
Expand Down
24 changes: 24 additions & 0 deletions doc/messenger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Messenger integration

This bundle provides a middleware for the
`symfony/messenger` component (from version `4.3`) which handles
starting/committing/rolling back a transaction when sending a command
to the bus.

Here is an example configuration on how to use it:
```yaml
# app/config/messenger.yaml

framework:
messenger:
buses:
command.bus:
middleware:
- my_eventstore_transaction_middleware

services:
my_eventstore_transaction_middleware:
class: Prooph\Bundle\EventStore\Messenger\EventStoreTransactionMiddleware
arguments:
- '@my_transactional_event_store'
```

0 comments on commit fc4f5fa

Please sign in to comment.