Skip to content

Commit 42ed46a

Browse files
committed
Upgrade flysystem to ver 2.
1 parent 7fbe973 commit 42ed46a

File tree

2 files changed

+170
-132
lines changed

2 files changed

+170
-132
lines changed

app/code/Magento/AwsS3/Driver/AwsS3.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Generator;
1111
use League\Flysystem\Config;
1212
use League\Flysystem\FilesystemAdapter;
13+
use League\Flysystem\Visibility;
1314
use Magento\Framework\Exception\FileSystemException;
1415
use Magento\Framework\Filesystem\DriverInterface;
1516
use Magento\Framework\Phrase;
@@ -29,7 +30,7 @@ class AwsS3 implements RemoteDriverInterface
2930

3031
private const TEST_FLAG = 'storage.flag';
3132

32-
private const CONFIG = ['ACL' => 'private'];
33+
private const CONFIG = [Config::OPTION_VISIBILITY => Visibility::PRIVATE];
3334

3435
/**
3536
* @var FilesystemAdapter

0 commit comments

Comments
 (0)