Skip to content

Commit

Permalink
ADD documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkin committed Apr 30, 2018
1 parent a3f873e commit 09826ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/interop_factories.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,24 @@ You can also configure a custom stream name (default is `event_stream`):
]
```

You can add your custom event store too (default is `EventStore::class`):
```php
[
'prooph' => [
'event_sourcing' => [
'aggregate_repository' => [
'user_repository' => [
'repository_class' => MyUserRepository::class,
'event_store' => MyCustomEventStore::class, // <-- Custom event store service id
'aggregate_type' => MyUser::class,
'aggregate_translator' => 'user_translator',
],
],
],
],
]
```

Last but not least you can enable the so called "One-Stream-Per-Aggregate-Mode":
```php
[
Expand Down

0 comments on commit 09826ff

Please sign in to comment.