Skip to content

Commit 8c04f9a

Browse files
marufmaxKevinrob
andauthored
upgrade to flysystem v3 (#182)
* (feat): upgrading to flysystem v3 * (feat): changed method name from `put` to `write` --------- Co-authored-by: Kevin Robatel <kevinrob2@gmail.com>
1 parent 23cd615 commit 8c04f9a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require-dev": {
2222
"phpunit/phpunit": "^9.6.21",
2323
"doctrine/cache": "^1.10",
24-
"league/flysystem": "^2.5",
24+
"league/flysystem": "^3.16",
2525
"psr/cache": "^1.0",
2626
"cache/array-adapter": "^0.4 || ^0.5 || ^1.0",
2727
"illuminate/cache": "^5.0",

src/Storage/FlysystemStorage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ public function save($key, CacheEntry $data)
5858
public function delete($key)
5959
{
6060
try {
61-
$this->filesystem->delete($key);
62-
return true;
61+
return $this->filesystem->delete($key);
6362
} catch (FilesystemException $ex) {
6463
return true;
6564
}

0 commit comments

Comments
 (0)