| @@ -1069,5 +1069,10 @@ | ||
| 1069 | 1069 | } |
| 1070 | 1070 | // fallback |
| 1071 | 1071 | return "https://r2.cloudflarestorage.com"; |
| 1072 | 1072 | } |
| 1073 | + | |
| 1074 | + /** Exposes the already-constructed SDK client for StreamWrapper's registration — avoids reconstructing one from credentials. */ | |
| 1075 | + public function get_client() { | |
| 1076 | + return $this->cloudflareClient; | |
| 1077 | + } | |
| 1073 | 1078 | } |