Log in
Interface

SynchronizeInterface

Magento\MediaGallerySynchronizationApi\Api\SynchronizeInterface

What it does

This interface defines a contract for synchronizing media assets from the file system storage to the database in Magento 2's media gallery.

Developers implement this interface to create services that scan the media storage directory and ensure all image and media files are properly registered in the database, useful for keeping the media gallery in sync after manual file uploads or migrations.

Public Methods

  • execute()