Skip to content

Commit e6a3201

Browse files
author
julien
committed
doc(README): Add sample
1 parent bd6d4f2 commit e6a3201

File tree

13 files changed

+393
-35
lines changed

13 files changed

+393
-35
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,25 @@ CQRS (Command Query Responsibility Segregation) it's an architectural pattern th
1414

1515
## Pré-requis
1616

17-
Autowiring
18-
19-
## Installation
17+
symfony powerfull DI with autowire and autoconfigure enable
2018

2119
```
2220
23-
composer require twc/bus-bundle
24-
2521
```
2622

27-
Active bundle
23+
24+
## Installation
2825

2926
```
30-
//config/bundle.php
3127
32-
Twc\BusBundle\TwcBusBundle::class => ['all' => true]
28+
composer require twc/bus-bundle
3329
3430
```
3531

32+
3633
## How to use ?
3734

38-
You only have to implement the desired interface
35+
If you know CQRS pattern, you only have to implement the desired interface
3936

4037
### About Commands
4138

@@ -59,10 +56,21 @@ You only have to implement the desired interface
5956
| Query | Twc\BusBundle\Query\Interfaces\Query |
6057
| QueryHandler | Twc\BusBundle\Event\Interfaces\QueryHandler |
6158

59+
## About Bus
60+
61+
| topic | Interface |
62+
|--------|-----------|
63+
| CommandBusDispatcher | Twc\BusBundle\Command\CommandBusDispatcher |
64+
| EventBusDispatcher | Twc\BusBundle\Event\EventBusDispatcher |
65+
| QueryBusDispatcher | Twc\BusBundle\Query\QueryBusDispatcher |
66+
67+
6268
That's all !
6369

6470
CommandBus, EventBus, QueryBus will do the work, thank's Dependencies Injection and autowiring in symfony.
6571

72+
# Samples
6673

74+
- [exemple (fr)](./docs/cqrs_fr.md)
6775

6876

0 commit comments

Comments
 (0)