Closed rawilk closed 1 year ago
This PR adds three events that will be dispatched:
Event is dispatched when the flush method is called on the settings service. The event receives the following arguments:
flush
$keys
$teamId
$context
Event is dispatched when a setting is deleted. The event receives the following arguments:
$key
$storageKey
$cacheKey
$value
Note: When caching is enabled, the event will only fire if the value has changed for an already persisted setting.
This PR adds three events that will be dispatched:
SettingsFlushed
Event is dispatched when the
flush
method is called on the settings service. The event receives the following arguments:$keys
: The subset of keys being flushed, if any$teamId
: The current team id set on the settings service$context
: The current context object set on the settings serviceSettingWasDeleted
Event is dispatched when a setting is deleted. The event receives the following arguments:
$key
: The key of the setting being deleted$storageKey
: The generated key used by the storage mechanism on the driver$cacheKey
: The generated cache key of the setting$teamId
: The current team id set on the settings service$context
: The current context object set on the settings serviceSettingWasStored
Event is dispatched when a setting is deleted. The event receives the following arguments:
$key
: The key of the setting being stored$storageKey
: The generated key used by the storage mechanism on the driver$cacheKey
: The generated cache key of the setting$value
: The value being set for the setting$teamId
: The current team id set on the settings service$context
: The current context object set on the settings serviceNote: When caching is enabled, the event will only fire if the value has changed for an already persisted setting.