File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 44
55use AzureOss \FlysystemAzureBlobStorage \AzureBlobStorageAdapter ;
66use AzureOss \Storage \Blob \BlobServiceClient ;
7- use AzureOss \Storage \Common \Auth \StorageSharedKeyCredential ;
87use Illuminate \Filesystem \FilesystemAdapter ;
98use League \Flysystem \Config ;
109use League \Flysystem \Filesystem ;
@@ -29,7 +28,7 @@ public function __construct(array $config)
2928 {
3029 $ serviceClient = BlobServiceClient::fromConnectionString ($ config ['connection_string ' ]);
3130 $ containerClient = $ serviceClient ->getContainerClient ($ config ['container ' ]);
32- $ this ->canProvideTemporaryUrls = $ containerClient ->sharedKeyCredentials instanceof StorageSharedKeyCredential ;
31+ $ this ->canProvideTemporaryUrls = $ containerClient ->canGenerateSasUri () ;
3332 $ adapter = new AzureBlobStorageAdapter ($ containerClient , $ config ['prefix ' ] ?? $ config ['root ' ] ?? '' );
3433
3534 parent ::__construct (
You can’t perform that action at this time.
0 commit comments