Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | protected function getFilesystemAdapter(array $config): FilesystemAdapter |
||
12 | { |
||
13 | $options = [ |
||
14 | 'credentials' => [ |
||
15 | 'key' => $config['key'], |
||
16 | 'secret' => $config['secret'], |
||
17 | ], |
||
18 | 'region' => $config['region'], |
||
19 | 'endpoint' => $config['endpoint'], |
||
20 | 'version' => 'latest', |
||
21 | ]; |
||
22 | $client = new S3Client($options); |
||
23 | $adapter = new AwsS3V3Adapter($client, $config['bucket']); |
||
24 | |||
25 | return $adapter; |
||
26 | } |
||
28 |