You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I can't specify the event listener priority in the event service provider.
Describe the solution you'd like
A static property on the listener to set the priority.
Describe alternatives you've considered
Registering the listeners in a subscriber or with the facade directly.
Additional context
Laravel used to allow this, it was removed as it's not good practice - listeners should be order-agnostic, however, WordPress uses priorities for core events so the ability to set the priority is still relevant in certain circumstances. The static property should possibly not be exposed by default in listener stubs.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I can't specify the event listener priority in the event service provider.
Describe the solution you'd like
A static property on the listener to set the priority.
Describe alternatives you've considered
Registering the listeners in a subscriber or with the facade directly.
Additional context
Laravel used to allow this, it was removed as it's not good practice - listeners should be order-agnostic, however, WordPress uses priorities for core events so the ability to set the priority is still relevant in certain circumstances. The static property should possibly not be exposed by default in listener stubs.
The text was updated successfully, but these errors were encountered: