Метод |
Описание |
|
__construct ( Data $helper, Arkade\S3\Model\MediaStorage\File\Storage\S3Factory $s3StorageFactory, Magento\MediaStorage\Model\File\Storage\DatabaseFactory $dbStorageFactory ) |
|
|
afterCheckDbUsage ( Magento\MediaStorage\Helper\File\Storage\Database $subject, boolean $result ) : boolean |
Check whether we are using either the database or S3 as our file storage
backend. |
|
afterGetMediaRelativePath ( Magento\MediaStorage\Helper\File\Storage\Database $subject, string $result ) : string |
The Magento_ImportExport module will try to run erroneous file paths,
e.g. pub/media/catalog/category/twswifty.jpg, through the parent function
of this plugin. The parent function can't handle this so it just returns
the original file path (when we really don't want the pub/media prefix at
all). This plugin will remove the pub/media prefix. |
|
afterSaveUploadedFile ( Magento\MediaStorage\Helper\File\Storage\Database $subject, string $result ) : string |
Removes any forward slashes from the start of the uploaded file name. |
|
aroundDeleteFolder ( Magento\MediaStorage\Helper\File\Storage\Database $subject, $proceed, $folderName ) |
|
|
aroundGetStorageDatabaseModel ( Magento\MediaStorage\Helper\File\Storage\Database $subject, $proceed ) |
|
|
aroundSaveFileToFilesystem ( Magento\MediaStorage\Helper\File\Storage\Database $subject, $proceed, $filename ) |
|
|