Skip to content

v5.2.0

Latest

Choose a tag to compare

@lindyhopchris lindyhopchris released this 05 Jan 13:33
· 1 commit to develop since this release

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 ListonTo attribute.
    • Middleware can now be added to a domain event dispatcher via the Through attribute.
  • 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