Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws/aws-sdk-php/src/S3/S3Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ public static function applyDocFilters(array $api, array $docs)
. " parameters: Psr7 takes ownership of streams and will automatically close"
. " streams when this method is called with a stream as the <code>Body</code>"
. " parameter. To prevent this, set the <code>Body</code> using"
. " <code>GuzzleHttp\Psr7\stream_for</code> method with a is an instance of"
. " <code>GuzzleHttp\Psr7\Utils::streamFor</code> method with a is an instance of"
. " <code>Psr\Http\Message\StreamInterface</code>, and it will be returned"
. " unmodified. This will allow you to keep the stream in scope. </p>";
$docs['operations']['PutObject'] .= $guzzleStreamMessage;
Expand Down
12 changes: 6 additions & 6 deletions microsoft/azure-storage-blob/src/Blob/BlobRestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ private function updatePageBlobPagesAsyncImpl(
get_class(new Range(0))
)
);
$body = Psr7\stream_for($content);
$body = Psr7\Utils::streamFor($content);

$method = Resources::HTTP_PUT;
$headers = array();
Expand Down Expand Up @@ -1834,7 +1834,7 @@ public function createBlockBlobAsync(
$content,
Models\CreateBlockBlobOptions $options = null
) {
$body = Psr7\stream_for($content);
$body = Psr7\Utils::streamFor($content);

//If the size of the stream is not seekable or larger than the single
//upload threshold then call concurrent upload. Otherwise call putBlob.
Expand Down Expand Up @@ -1915,7 +1915,7 @@ public function createPageBlobFromContentAsync(
$content,
Models\CreatePageBlobFromContentOptions $options = null
) {
$body = Psr7\stream_for($content);
$body = Psr7\Utils::streamFor($content);
$self = $this;

if (is_null($options)) {
Expand Down Expand Up @@ -2417,7 +2417,7 @@ public function createBlobPagesAsync(
$content,
Models\CreateBlobPagesOptions $options = null
) {
$contentStream = Psr7\stream_for($content);
$contentStream = Psr7\Utils::streamFor($content);
//because the content is at most 4MB long, can retrieve all the data
//here at once.
$body = $contentStream->getContents();
Expand Down Expand Up @@ -2516,7 +2516,7 @@ public function createBlobBlockAsync(
$postParams = array();
$queryParams = $this->createBlobBlockQueryParams($options, $blockId);
$path = $this->createPath($container, $blob);
$contentStream = Psr7\stream_for($content);
$contentStream = Psr7\Utils::streamFor($content);
$body = $contentStream->getContents();

$options->setLocationMode(LocationMode::PRIMARY_ONLY);
Expand Down Expand Up @@ -2597,7 +2597,7 @@ public function appendBlockAsync(
$queryParams = array();
$path = $this->createPath($container, $blob);

$contentStream = Psr7\stream_for($content);
$contentStream = Psr7\Utils::streamFor($content);
$length = $contentStream->getSize();
$body = $contentStream->getContents();

Expand Down