MediaGallerySynchronization Module
Consume
This class serves as a message queue consumer for media gallery synchronization operations. Developers use this when implementing asynchronous media f...
CreateAssetFromFile
This class creates a MediaGallery asset object from a physical file in the media directory. Developers use this during media synchronization to conver...
FetchBatches
This class retrieves data from database tables in batches to avoid memory issues when processing large datasets. Developers use it during media galler...
FetchMediaStorageFileBatches
This class retrieves media files from Magento's media storage directory in configurable batches for synchronization purposes. Developers use this when...
Filesystem\FileInfo
This is a Data Transfer Object (DTO) that encapsulates file metadata information for media gallery synchronization. Developers use this class to pass...
Filesystem\GetFileInfo
This class retrieves detailed file information from the filesystem for media gallery synchronization. Developers use it to get file metadata like path...
GetAssetFromPath
This class retrieves or creates a media asset object from a file path. It checks if an asset already exists in the gallery for the given path and merg...
GetAssetsIterator
This class provides a recursive iterator for traversing media storage directories and their files. Developers use this during media gallery synchroniz...
GetContentHash
This model class generates a SHA-1 hash of media file content for synchronization purposes. Developers use this when comparing media assets to detect...
ImportMediaAsset
This class imports image files into Magento's media gallery asset database. Developers use it when synchronizing filesystem media files with the media...
Model\Filesystem\SplFileInfoFactory
This factory class creates SplFileInfo objects from file paths in the Media Gallery Synchronization module. Developers use this when they need to obta...
Publish
This class publishes media gallery synchronization tasks to a message queue. Developers use it when they need to trigger asynchronous synchronization...
ResolveNonExistedAssets
This class synchronizes the media gallery database with the actual filesystem by identifying and removing database records for media assets that no lo...
Synchronize
This class synchronizes media files from storage with the media gallery database records in Magento 2. Developers would use this when importing media...
SynchronizeFiles
This class synchronizes media files in the filesystem with their corresponding database records in Magento's Media Gallery. Developers use this when t...