58 \
Magento\MediaStorage\Helper\File\
Storage\Database $coreFileStorageDb,
62 $this->_filesystemStorage = $filesystemStorage;
63 $this->_coreFileStorageDb = $coreFileStorageDb;
64 $this->_storage = $storage;
65 parent::__construct($context);
75 if ($this->_currentStorage ===
null) {
76 $this->_currentStorage = (int)$this->scopeConfig->getValue(
77 \
Magento\MediaStorage\Model\File\Storage::XML_PATH_STORAGE_MEDIA,
105 return in_array($storage, $this->_internalStorageList);
117 return $this->_storage->getStorageModel($storage,
$params);
138 if (!$file->getId()) {
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]