Missing Gateway and Service Events #4008
Replies: 4 comments
-
Thanks for reporting. This is the same for some other project config based settings. Added this to the list for Commerce 5.x. Others will include:
|
Beta Was this translation helpful? Give feedback.
-
Keeping this issue open until all services get the improved event handlers. Tracking the services here: #3224 (comment) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
#3885 Created, but not sure of the utility of these events so they have been placed on the backlog at low priority. Happy to hear how others would want to use these events if they existed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Description
Events are not currently emitted by
craft\commerce\base\Gateway
orcraft\commerce\services\Gateways
when saving a Gateway’s configuration.Craft typically emits events from the service class when saving Project Config-bound changes (
beforeSave
when modifying values, thenafterSave
in a PC event handler). The model events appear to be less consistently triggered…Steps to reproduce
Expected behavior
craft\commerce\services\Gateways::EVENT_BEFORE_SAVE_GATEWAY
.Actual behavior
No event is triggered.
Originally reported on Discord!
Beta Was this translation helpful? Give feedback.
All reactions