HBLL-Collection-Development /
omeka-s-any-cloud
| 1 | <?php |
||
| 2 | |||
| 3 | namespace AnyCloud\Service\File\Store; |
||
| 4 | |||
| 5 | use AnyCloud\File\Store; |
||
| 6 | use Google\Cloud\Storage\StorageClient; |
||
| 7 | use Interop\Container\ContainerInterface; |
||
| 8 | use Laminas\ServiceManager\Factory\FactoryInterface; |
||
|
0 ignored issues
–
show
|
|||
| 9 | use League\Flysystem\Filesystem; |
||
| 10 | use League\Flysystem\GoogleCloudStorage\GoogleCloudStorageAdapter; |
||
| 11 | |||
| 12 | class GoogleFactory extends AbstractFlysystemFactory |
||
| 13 | { |
||
| 14 | protected function getConfigKey(): string |
||
| 15 | { |
||
| 16 | return 'google'; |
||
| 17 | } |
||
| 18 | |||
| 19 | protected function getFilesystemAdapter(array $config): FilesystemAdapter |
||
|
0 ignored issues
–
show
The type
AnyCloud\Service\File\Store\FilesystemAdapter was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 20 | { |
||
| 21 | $client = new StorageClient([ |
||
| 22 | 'projectId' => $config['project_id'], |
||
| 23 | 'keyFilePath' => sprintf('%s/modules/AnyCloud%s', OMEKA_PATH, $config['credentials_path']), |
||
|
0 ignored issues
–
show
|
|||
| 24 | ]); |
||
| 25 | $bucket = $client->bucket($config['bucket_name']); |
||
| 26 | $adapter = new GoogleCloudStorageAdapter($bucket); |
||
| 27 | |||
| 28 | return $adapter; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
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