HBLL-Collection-Development /
omeka-s-any-cloud
| 1 | <?php |
||
| 2 | |||
| 3 | namespace AnyCloud\Service\File\Store; |
||
| 4 | |||
| 5 | use League\Flysystem\AzureBlobStorage\AzureBlobStorageAdapter; |
||
| 6 | use MicrosoftAzure\Storage\Blob\BlobRestProxy; |
||
| 7 | |||
| 8 | class AzureFactory extends AbstractFlysystemFactory |
||
| 9 | { |
||
| 10 | protected function getConfigKey(): string |
||
| 11 | { |
||
| 12 | return 'azure'; |
||
| 13 | } |
||
| 14 | |||
| 15 | protected function getFilesystemAdapter(array $config): FilesystemAdapter |
||
|
0 ignored issues
–
show
|
|||
| 16 | { |
||
| 17 | $connectionString = sprintf( |
||
| 18 | 'DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;', |
||
| 19 | $config['account_name'], |
||
| 20 | $config['account_key'] |
||
| 21 | ); |
||
| 22 | $client = BlobRestProxy::createBlobService($connectionString); |
||
| 23 | $adapter = new AzureBlobStorageAdapter($client, $config['container_name']); |
||
| 24 | |||
| 25 | return $adapter; |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths