php-ddd / domain-driven-design

{NEW} PHP implementation of Eric Evans' domain driven design
MIT License
29 stars 4 forks source link

Link between Command and Event #9

Closed juliendufresne closed 9 years ago

juliendufresne commented 9 years ago

Now we have a command system and an event system. They are separate but can definitely work together.

We need to provide a link between the two systems: a CommandEventDispatcher. This will be able to start from a Command, handle it and then publish all the events that the command triggered. We may also only want to publish an Event from this dispatcher.