@@ 175-185 (lines=11) @@ | ||
172 | /** |
|
173 | * {@inheritdoc} |
|
174 | */ |
|
175 | public function read($path) |
|
176 | { |
|
177 | $path = $this->applyPathPrefix($path); |
|
178 | ||
179 | /** @var \MicrosoftAzure\Storage\Blob\Models\GetBlobResult $blobResult */ |
|
180 | $blobResult = $this->client->getBlob($this->container, $path); |
|
181 | $properties = $blobResult->getProperties(); |
|
182 | $content = $this->streamContentsToString($blobResult->getContentStream()); |
|
183 | ||
184 | return $this->normalizeBlobProperties($path, $properties) + ['contents' => $content]; |
|
185 | } |
|
186 | ||
187 | /** |
|
188 | * {@inheritdoc} |
|
@@ 190-199 (lines=10) @@ | ||
187 | /** |
|
188 | * {@inheritdoc} |
|
189 | */ |
|
190 | public function readStream($path) |
|
191 | { |
|
192 | $path = $this->applyPathPrefix($path); |
|
193 | ||
194 | /** @var \MicrosoftAzure\Storage\Blob\Models\GetBlobResult $blobResult */ |
|
195 | $blobResult = $this->client->getBlob($this->container, $path); |
|
196 | $properties = $blobResult->getProperties(); |
|
197 | ||
198 | return $this->normalizeBlobProperties($path, $properties) + ['stream' => $blobResult->getContentStream()]; |
|
199 | } |
|
200 | ||
201 | /** |
|
202 | * {@inheritdoc} |