Storage events¶
Storage events are dispatched in the PIM when you manipulate data using the savers and removers services. They are basically useful if you want to add your business logic before or after an object is saved or removed.
Here is a list of all the events:
akeneo.storage.pre_remove
¶
Event Class: RemoveEvent
This event is dispatched before we remove an object using a remover.
These are the built-in PIM subscribers registered to this event:
Listener Class Name | Priority |
---|---|
CheckChannelsOnDeletionSubscriber | 0 |
RuleRelationSubscriber (Enterprise edition) | 0 |
RemoveChannelSubscriber (Enterprise edition) | 0 |
CheckPublishedProductOnRemovalSubscriber (Enterprise edition) | 0 |
akeneo.storage.post_remove
¶
Event Class: RemoveEvent
This event is dispatched after we have removed an object using a remover.
These are the built-in PIM subscribers registered to this event:
Listener Class Name | Priority |
---|---|
AddRemoveVersionSubscriber | 0 |
RemoveOutdatedProductsFromAssociationsSubscriber | 0 |
ProductCategorySubscriber | 0 |
akeneo.storage.pre_save
¶
Event Class: GenericEvent
This event is dispatched before we save an object using a saver.
These are the built-in PIM subscribers registered to this event:
Listener Class Name | Priority |
---|---|
CurrencyDisablingSubscriber | 0 |
akeneo.storage.post_save
¶
Event Class: GenericEvent
This event is dispatched after we have saved an object using a saver.
akeneo.storage.pre_save_all
¶
Event Class: GenericEvent
This event is dispatched before we save a pool of objects using the saveAll function of the saver.
akeneo.storage.post_save_all
¶
Event Class: GenericEvent
This event is dispatched after we have saved a pool of objects using the saveAll function of the saver.