Event Sourcing Repository
Custom Event Sourcing Repository
interface EventSourcedRepository
{
1. public function canHandle(string $aggregateClassName): bool;
2. public function findBy(string $aggregateClassName, array $identifiers, int $fromAggregateVersion = 1) : EventStream;
3. public function save(array $identifiers, string $aggregateClassName, array $events, array $metadata, int $versionBeforeHandling): void;
}#[Repository]
class CustomEventSourcingRepositoryStoring Events
Core metadata
Aggregate Type
Named Events
Snapshoting
Testing
Last updated
Was this helpful?