rekalogika/domain-event
An implementation of domain event pattern for Symfony & Doctrine.
Sections
📄️ Introduction & Installation
An implementation of domain event pattern for Symfony & Doctrine.
📄️ Outbox Installation & Configuration
To use the transactional outbox pattern to publish your events on the event bus,
📄️ Basic Usage
You make your entities record events happening in your domain. This library
📄️ Pseudo Magic Method
The interface DomainEventEmitterInterface implemented by your entities and the
📄️ Equatable Domain Events
A domain event can optionally implement EquatableDomainEventInterface which
📄️ Transactions
The framework fully supports transaction, as long as the caller uses the
📄️ Manual Control
To manually manage domain events, you can use
📄️ Dispatch Events
When a domain event is dispatched, another event is dispatched. The event wraps
📄️ Testing
Undispatched Event Problem
📄️ Transactional Outbox Pattern
The package rekalogika/domain-event-outbox implements the transactional outbox
📄️ Batch Processing
How to handle domain events in batch processing.
📄️ Tips
This chapter explains the tips and our best practices that others might find