@@ 177-187 (lines=11) @@ | ||
174 | /** |
|
175 | * @inheritdoc |
|
176 | */ |
|
177 | public function read($path) |
|
178 | { |
|
179 | if ( ! $response = $this->get($path)) { |
|
180 | return false; |
|
181 | } |
|
182 | ||
183 | return [ |
|
184 | 'path' => $path, |
|
185 | 'contents' => (string) $response->getBody(), |
|
186 | ] + $this->getResponseMetadata($path, $response); |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * @inheritdoc |
|
@@ 192-202 (lines=11) @@ | ||
189 | /** |
|
190 | * @inheritdoc |
|
191 | */ |
|
192 | public function readStream($path) |
|
193 | { |
|
194 | if ( ! $response = $this->get($path)) { |
|
195 | return false; |
|
196 | } |
|
197 | ||
198 | return [ |
|
199 | 'path' => $path, |
|
200 | 'stream' => $response->getBody()->detach(), |
|
201 | ] + $this->getResponseMetadata($path, $response); |
|
202 | } |
|
203 | ||
204 | /** |
|
205 | * @inheritdoc |