コード例 #1
0
 /**
  * @param ImageContentInterface $imageContent
  * @return string
  */
 protected function saveFile(ImageContentInterface $imageContent)
 {
     $uri = $this->filesystem->getUri(DirectoryList::MEDIA);
     $filePath = $this->imageProcessor->processImageContent($this->destinationFolder, $imageContent);
     return $uri . $this->destinationFolder . $filePath;
 }
コード例 #2
0
ファイル: Processor.php プロジェクト: Doability/magento2dev
 /**
  * @param ImageContentInterface $imageContent
  * @return string
  */
 protected function saveFile(ImageContentInterface $imageContent)
 {
     $filePath = $this->imageProcessor->processImageContent($this->destinationFolder, $imageContent);
     return $this->destinationFolder . $filePath;
 }