What's Changed
- New domain event dispatcher features:
- Can now use a PSR container for the domain event dispatcher to resolve both handlers and middleware. Inject the service container via the first constructor argument. This works for all three domain event dispatchers.
- Domain events can now be mapped to handlers on a domain event dispatcher class via the
ListonToattribute. - Middleware can now be added to a domain event dispatcher via the
Throughattribute.
- The unit of work domain event dispatcher will now log debug messages when deferring and executing listeners. To enable this, inject an optional logger instance via the constructor.
Full Changelog: v5.1.0...v5.2.0