Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 748 Bytes

2023-01-06-added-media-uploaded-event.md

File metadata and controls

15 lines (15 loc) · 748 Bytes
title issue author author_email author_github
added-media-uploaded-event
NEXT-25027
Hung Mac
hungmac-sw

Core

  • Added new event class Shopware/Core/Content/Media/Event/MediaUploadedEvent.php
  • Added new event media.uploaded in Shopware/Core/Content/Media/MediaEvents.php
  • Changed Shopware/Core/Content/Media/Api/MediaUploadController::upload to dispatch the new MediaUploadedEvent event after successfuly saving media to the database.
  • Changed \Shopware\Core\Framework\Webhook\Hookable\HookableEventCollector to make events of the media entity hookable.
  • Added new classes to Shopware\Core\Content\Flow\Dispatching:
    • Aware\MediaUploadedAware.php
    • Storer\MediaUploadedStorer.php