| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 78 | protected function initAdapter() |
||
| 79 | { |
||
| 80 | $config = array_filter( |
||
| 81 | [ |
||
| 82 | 'credentials' => [ |
||
| 83 | 'key' => $this->key, |
||
| 84 | 'secret' => $this->secret |
||
| 85 | ], |
||
| 86 | 'region' => $this->region, |
||
| 87 | 'version' => $this->version, |
||
| 88 | 'endpoint' => $this->endpoint |
||
| 89 | ] |
||
| 90 | ); |
||
| 91 | |||
| 92 | return new AwsS3Adapter( |
||
| 93 | new S3Client($config), |
||
| 94 | $this->bucket, |
||
| 95 | $this->prefix |
||
| 96 | ); |
||
| 97 | } |
||
| 98 | } |
||
| 99 |