| @@ -1458,5 +1458,10 @@ | ||
| 1458 | 1458 | $region = isset($this->config['region']) ? $this->config['region'] : ''; |
| 1459 | 1459 | return "https://{$this->bucket_name}.s3.{$region}.amazonaws.com"; |
| 1460 | 1460 | } |
| 1461 | 1461 | |
| 1462 | + /** Exposes the already-constructed SDK client for StreamWrapper's registration — avoids reconstructing one from credentials. */ | |
| 1463 | + public function get_client() { | |
| 1464 | + return $this->s3Client; | |
| 1465 | + } | |
| 1466 | + | |
| 1462 | 1467 | } |