Event Busis special type of Messaging Gateway.
Command Handlers,routed by name and converted using Converter if needed. Sending events by name instead of class type, may be found useful in integration with external application, when events are in different Media Type than PHP class.
Ecotonedoes provide possibility to automatically gather events from
Aggregateand publish them using
Ecotone, which method it should use for retrieving Event objects when using State-Stored Aggregate mark method containing events with annotation
Aggregateevents will be published.
WithAggregateEventIf you want to record event for publication just use