Skip to content
Open
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 composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"php": ">=5.6",
"league/flysystem": "^1.0",
"microsoft/azure-storage-blob": "^1.1",
"guzzlehttp/psr7": "^1.5"
"guzzlehttp/psr7": "^1.7|^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
Expand Down
4 changes: 2 additions & 2 deletions src/AzureBlobStorageAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace League\Flysystem\AzureBlobStorage;

use GuzzleHttp\Psr7\Utils;
use League\Flysystem\Adapter\AbstractAdapter;
use League\Flysystem\Adapter\Polyfill\NotSupportingVisibilityTrait;
use League\Flysystem\Config;
Expand All @@ -16,7 +17,6 @@

use function array_merge;
use function compact;
use function GuzzleHttp\Psr7\stream_for;
use function stream_get_contents;
use function strpos;

Expand Down Expand Up @@ -75,7 +75,7 @@ protected function upload($path, $contents, Config $config)
* We manually create the stream to prevent it from closing the resource
* in its destructor.
*/
$stream = stream_for($contents);
$stream = Utils::streamFor($contents);
$response = $this->client->createBlockBlob(
$this->container,
$destination,
Expand Down