| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | protected function getFilesystemAdapter(array $config): FilesystemAdapter |
||
| 17 | { |
||
| 18 | $client = new StorageClient([ |
||
| 19 | 'projectId' => $config['project_id'], |
||
| 20 | 'keyFilePath' => sprintf('%s/modules/AnyCloud%s', OMEKA_PATH, $config['credentials_path']), |
||
|
|
|||
| 21 | ]); |
||
| 22 | $bucket = $client->bucket($config['bucket_name']); |
||
| 23 | $adapter = new GoogleCloudStorageAdapter($bucket); |
||
| 24 | |||
| 25 | return $adapter; |
||
| 26 | } |
||
| 28 |