| @@ -1398,8 +1398,13 @@ | ||
| 1398 | 1398 | * Get domain URL |
| 1399 | 1399 | */ |
| 1400 | 1400 | public function get_domain() { |
| 1401 | 1401 | $url_base = 'https://storage.googleapis.com'; |
| 1402 | - | |
| 1402 | + | |
| 1403 | 1403 | return $url_base; |
| 1404 | + } | |
| 1405 | + | |
| 1406 | + /** Exposes the already-constructed SDK client for StreamWrapper's registration — avoids reconstructing one from credentials. */ | |
| 1407 | + public function get_client() { | |
| 1408 | + return $this->gcloudClient; | |
| 1404 | 1409 | } |
| 1405 | 1410 | } |