Skip to content

Commit d6cb451

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 -
Added fixes to fix jenkins tests failures
1 parent 074ce5f commit d6cb451

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

app/code/Magento/MediaStorage/Model/File/Storage/SynchronizationFactory.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ class SynchronizationFactory
3434
* @param ObjectManagerInterface $objectManager
3535
* @param string $instanceName
3636
*/
37-
public function __construct(ObjectManagerInterface $objectManager, string $instanceName =
38-
'\\Magento\\MediaStorage\\Model\\File\\Storage\\Synchronization')
39-
{
37+
public function __construct(
38+
ObjectManagerInterface $objectManager,
39+
string $instanceName = '\\Magento\\MediaStorage\\Model\\File\\Storage\\Synchronization'
40+
) {
4041
$this->objectManager = $objectManager;
4142
$this->instanceName = $instanceName;
4243
}

app/code/Magento/RemoteStorage/Model/File/Storage/Synchronization.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public function __construct(Config $config, Filesystem $filesystem)
4646
{
4747
$this->isEnabled = $config->isEnabled();
4848
$this->remoteDirectory = $filesystem->getDirectoryWrite(
49-
DirectoryList::PUB, RemoteDriverPool::REMOTE);
49+
DirectoryList::PUB, RemoteDriverPool::REMOTE
50+
);
5051
$this->localDirectory = $filesystem->getDirectoryWrite(
5152
DirectoryList::PUB, LocalDriverPool::FILE
5253
);
5354
}
5455

5556
/**
56-
* Synchronize file
57-
*
57+
* Synchronize files from remote to local file system.
5858
* @param string $relativeFileName
5959
* @return void
6060
* @throws \LogicException

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class SynchronizationFactory extends \Magento\MediaStorage\Model\File\Storage\Sy
3535
*/
3636
public function __construct(ObjectManagerInterface $objectManager, Config $config)
3737
{
38+
$this->objectManager = $objectManager;
3839
$this->config = $config;
3940
parent::__construct($objectManager);
4041
}

0 commit comments

Comments
 (0)