-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression on missing resource put
Some external libraries did rely on the usage of putResource. This method wasn't part of the new filesystem interface and was therefore breaking those implementations.
- Loading branch information
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,11 @@ public function put(string $path, string $contents): bool | |
return $this->filesystem->put($path, $contents); | ||
} | ||
|
||
public function putStream(string $path, $resource): void | ||
Check failure on line 78 in packages/filesystem/src/FlySystemAdapter.php
|
||
{ | ||
$this->filesystem->putStream($path, $resource); | ||
} | ||
|
||
/** @return StorageAttributes[] */ | ||
public function listContents(string $directory = '', bool $recursive = false): array | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,12 @@ public function put(string $path, string $contents): bool | |
return $this->filesystem->put($path, $contents); | ||
} | ||
|
||
/** @param $resource $resource */ | ||
public function putStream(string $path, $resource): void | ||
Check failure on line 56 in packages/filesystem/src/FlysystemV1/FlysystemV1.php
|
||
{ | ||
$this->filesystem->putStream($path, $resource); | ||
} | ||
|
||
/** @return StorageAttributes[] */ | ||
public function listContents(string $directory = '', bool $recursive = false): array | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,12 @@ public function put(string $path, string $contents): bool | |
return true; | ||
} | ||
|
||
/** @param $resource $resource */ | ||
public function putStream(string $path, $resource): void | ||
Check failure on line 56 in packages/filesystem/src/FlysystemV3/FlysystemV3.php
|
||
{ | ||
$this->filesystem->writeStream($path, $resource); | ||
} | ||
|
||
/** @return FileAttributes[] */ | ||
public function listContents(string $directory = '', bool $recursive = false): array | ||
{ | ||
|