PHP Class Arkade\S3\Model\ResourceModel\MediaStorage\File\Storage\File

Inheritance: extends Magento\MediaStorage\Model\ResourceModel\File\Storage\File
Mostrar archivo Open project: arkadedigital/magento2-s3

Protected Properties

Property Type Description
$fileStorageDb

Public Methods

Method Description
__construct ( Magento\Framework\Filesystem $filesystem, Psr\Log\LoggerInterface $log, Magento\MediaStorage\Helper\File\Storage\Database $fileStorageDb )
saveFile ( string $filePath, string $content, boolean $overwrite = false ) : boolean Extend the original functionality of this method by also uploading the requested file to S3.

Method Details

__construct() public method

public __construct ( Magento\Framework\Filesystem $filesystem, Psr\Log\LoggerInterface $log, Magento\MediaStorage\Helper\File\Storage\Database $fileStorageDb )
$filesystem Magento\Framework\Filesystem
$log Psr\Log\LoggerInterface
$fileStorageDb Magento\MediaStorage\Helper\File\Storage\Database

saveFile() public method

Extend the original functionality of this method by also uploading the requested file to S3.
public saveFile ( string $filePath, string $content, boolean $overwrite = false ) : boolean
$filePath string
$content string
$overwrite boolean
return boolean

Property Details

$fileStorageDb protected_oe property

protected $fileStorageDb