| @@ 284-297 (lines=14) @@ | ||
| 281 | return true; |
|
| 282 | } |
|
| 283 | ||
| 284 | protected function getOptions($key, array $options = []) |
|
| 285 | { |
|
| 286 | $options['ACL'] = $this->options['acl']; |
|
| 287 | $options['Bucket'] = $this->bucket; |
|
| 288 | $options['Key'] = $this->computePath($key); |
|
| 289 | ||
| 290 | /* |
|
| 291 | * Merge global options for adapter, which are set in the constructor, with metadata. |
|
| 292 | * Metadata will override global options. |
|
| 293 | */ |
|
| 294 | $options = array_merge($this->options, $options, $this->getMetadata($key)); |
|
| 295 | ||
| 296 | return $options; |
|
| 297 | } |
|
| 298 | ||
| 299 | protected function computePath($key) |
|
| 300 | { |
|
| @@ 288-301 (lines=14) @@ | ||
| 285 | return true; |
|
| 286 | } |
|
| 287 | ||
| 288 | protected function getOptions($key, array $options = []) |
|
| 289 | { |
|
| 290 | $options['ACL'] = $this->options['acl']; |
|
| 291 | $options['Bucket'] = $this->bucket; |
|
| 292 | $options['Key'] = $this->computePath($key); |
|
| 293 | ||
| 294 | /* |
|
| 295 | * Merge global options for adapter, which are set in the constructor, with metadata. |
|
| 296 | * Metadata will override global options. |
|
| 297 | */ |
|
| 298 | $options = array_merge($this->options, $options, $this->getMetadata($key)); |
|
| 299 | ||
| 300 | return $options; |
|
| 301 | } |
|
| 302 | ||
| 303 | protected function computePath($key) |
|
| 304 | { |
|