Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.09 KB

EVENTS.md

File metadata and controls

31 lines (20 loc) · 1.09 KB

Use Events

  • Before each Task launch in Pipeline an event BeforeTaskEvent is dispatched.
  • After each Task launch in Pipeline an event AfterTaskEvent is dispatched.

These events have two functions :

  • getTask() : return the Task class name
  • getPayload() : return the current Payload class name

The Event can modify the Payload which will then be used.

Before/After processing events

  • Before event are sent before interracting with the Akeneo resource data. This allows you to make changes to the received data.
  • After event are sent after persisting objects and before flushing them.

Taxon

  • Synolia\SyliusAkeneoPlugin\Event\Category\BeforeProcessingTaxonEvent
  • Synolia\SyliusAkeneoPlugin\Event\Category\AfterProcessingTaxonEvent

Product

  • Synolia\SyliusAkeneoPlugin\Event\Product\BeforeProcessingProductEvent
  • Synolia\SyliusAkeneoPlugin\Event\Product\AfterProcessingProductEvent

Product Variant

  • Synolia\SyliusAkeneoPlugin\Event\ProductVariant\BeforeProcessingProductVariantEvent
  • Synolia\SyliusAkeneoPlugin\Event\ProductVariant\AfterProcessingProductVariantEvent