From 92a5f5ccc8f5d5f7d3eaa5ae0768affa538971e1 Mon Sep 17 00:00:00 2001 From: Sergio Novo Date: Thu, 5 Oct 2023 18:28:58 +0200 Subject: [PATCH] Fix entity to value object --- README.md | 2 +- config/transactional-event-publisher.php | 2 +- src/Builders/EventMessageBuilder.php | 2 +- src/{Entities => ValueObjects}/EventMessage.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/{Entities => ValueObjects}/EventMessage.php (93%) diff --git a/README.md b/README.md index 159109a..c0ddc4b 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Its purpose is to store the domain event provided, so you can implement any stor The `transactional-event.messageBuilder` class must implement `EventMessageBuilderInterface` and `transactional-event.middleware` class must implement `EventStoreMiddlewareInterface`. -The builder should return a `EventMessageInterface` entity. It just needs to implement the `toArray` and `jsonSerialize` methods with all the attributes that you need. +The builder should return a `EventMessageInterface` value object. It just needs to implement the `toArray` and `jsonSerialize` methods with all the attributes that you need. Considerations ============== diff --git a/config/transactional-event-publisher.php b/config/transactional-event-publisher.php index 49410fa..4b2f430 100644 --- a/config/transactional-event-publisher.php +++ b/config/transactional-event-publisher.php @@ -1,7 +1,7 @@