Add support for event dispatcher priority

Created on 13 April 2023, over 1 year ago
Updated 20 February 2024, 9 months ago

Problem/Motivation

Add control of the event dispatcher priority.

For example: the OrderPaid (commerce_order.order.paid) plugin is fired at priority 0 (the default event dispatcher priority). This can be problematic when we have other event listeners that need to be executed early or later.

Proposed resolution

Add an optional priority setting in the annotation definition and pass it to EventDispatcher:addListener.

The patch included does all the above.

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium j0sbeir

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024