From 10692f77e645b7f2bc13eb6d2c32d2a88c2561bd Mon Sep 17 00:00:00 2001 From: Domenic Cassisi Date: Thu, 9 Jan 2025 21:16:01 +0100 Subject: [PATCH] Replacing deprecated factory functions with recommended constructor-like function --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d50c8a3..ab46f6e 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ natively requiring zero boilerplate code. `eventSourcingAggregate` function is a good example: ```kotlin -fun eventSourcingAggregate( +fun EventSourcingAggregate( decider: IDecider, eventRepository: EventRepository ): EventSourcingAggregate = @@ -298,7 +298,7 @@ natively requiring zero boilerplate code. `stateStoredAggregate` function is a good example: ```kotlin -fun stateStoredAggregate( +fun StateStoredAggregate( decider: IDecider, stateRepository: StateRepository ): StateStoredAggregate = @@ -430,7 +430,7 @@ natively requiring zero boilerplate code. `materializedView` function is a good example: ```kotlin -fun materializedView( +fun MaterializedView( view: IView, viewStateRepository: ViewStateRepository, ): MaterializedView = @@ -574,7 +574,7 @@ natively requiring zero boilerplate code. `sagaManager` function is a good example: ```kotlin -fun sagaManager( +fun SagaManager( saga: ISaga, actionPublisher: ActionPublisher ): SagaManager =