Skip to content

Commit 3a321cc

Browse files
committed
B2B-1789: First Request For Storefront Image After Deleting Local File System Cached Images Results In Magento Placeholder Image When Using S3 -
Static fixes
1 parent 1ed433c commit 3a321cc

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

app/code/Magento/RemoteStorage/Plugin/File/Storage/SynchronizationFactory.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\RemoteStorage\Plugin\File\Storage;
99

1010
use Magento\RemoteStorage\Model\File\Storage\Synchronization;
11+
use Magento\MediaStorage\Model\File\Storage\SynchronizationFactory as mediaSynchronizationFactory;
1112
use Magento\RemoteStorage\Model\Config;
1213
use Magento\Framework\ObjectManagerInterface;
1314

@@ -43,10 +44,14 @@ public function __construct(ObjectManagerInterface $objectManager, Config $confi
4344
/**
4445
* Create remote synchronization instance
4546
*
46-
* @param Synchronization $subject
47+
* @param mediaSynchronizationFactory $subject
4748
* @param array $data
49+
* @return mixed
50+
* @throws \Magento\Framework\Exception\FileSystemException
51+
* @throws \Magento\Framework\Exception\RuntimeException
52+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4853
*/
49-
public function beforeCreate(Synchronization $subject, array $data = [])
54+
public function beforeCreate(mediaSynchronizationFactory $subject, array $data = [])
5055
{
5156
if ($this->config->isEnabled()) {
5257
return $this->objectManager->create(Synchronization::class, $data);

generated/.htaccess

Lines changed: 0 additions & 8 deletions
This file was deleted.

var/.htaccess

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)