Skip to content

Commit

Permalink
update repository docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Feb 23, 2024
1 parent 771a7ce commit dc75075
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/pages/repository.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Repository

A `repository` takes care of storing and loading the `aggregates`.
A `repository` takes care of storing and loading the `aggregates` in the [event store](store.md).
He is also responsible for building [messages](event_bus.md) from the events and then dispatching them to the event bus.

Every aggregate needs a repository to be stored.
Expand Down Expand Up @@ -199,3 +199,11 @@ class ProfileRepository
}
}
```

## Learn more

* [How to create an aggregate](aggregate.md)
* [How to create an event](events.md)
* [How to work with the store](store.md)
* [How to use snapshots](snapshots.md)
* [How to split streams](split_stream.md)
7 changes: 7 additions & 0 deletions docs/pages/store.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,10 @@ $store->transactional(function () use ($command, $bankAccountRepository) {
});
```

## Learn more

* [How to create events](events.md)
* [How to use repositories](repository.md)
* [How to dispatch events](event_bus.md)
* [How to upcast events](upcasting.md)
* [How configure cli commands](cli.md)

0 comments on commit dc75075

Please sign in to comment.