Skip to content

Commit

Permalink
📖 Improve doc about multiple bus setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tyx committed Oct 27, 2016
1 parent 192e85e commit c4873f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ tactician:
# ...
```

By default, all commands are available in each bus. If you want to make a command available only in a specific bus, you need to specify its id :

```yaml
foo.user.register_user_handler:
class: Foo\User\RegisterUserHandler
arguments:
- '@foo.user.user_repository'
tags:
- { name: tactician.handler, command: Foo\User\RegisterUserCommand, bus: queued }
```

### Extra Bundled Middleware

This bundles ships with a few pre-configured middlewares, they can be enabled using the method above by just listing their ids.
Expand Down

0 comments on commit c4873f5

Please sign in to comment.