Aggregate listeners needed to define the $priority = 1 argument in attach().
attachAggregate() calls needed to be updated to instead use $aggregate->attach().
trigger() statements needed updating. In most cases, we were using actual event instances, which meant:
Updating the code to add the event name just before triggering.
Updating the trigger statements to either triggerEvent() or triggerEventUntil().
Triggers with callbacks needed the new argument order.
EventManager instances during testing needed to be injected with the SharedEventManager instance during instantiation. Any that set identifiers during instantiation needed to change argument order.
Principal issues:
$priority = 1
argument inattach()
.attachAggregate()
calls needed to be updated to instead use$aggregate->attach()
.trigger()
statements needed updating. In most cases, we were using actual event instances, which meant:triggerEvent()
ortriggerEventUntil()
.EventManager
instances during testing needed to be injected with theSharedEventManager
instance during instantiation. Any that set identifiers during instantiation needed to change argument order.