Skip to content

Commit 616af68

Browse files
committed
move to use illuminate\filesystem
1 parent aba84f6 commit 616af68

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"minimum-stability": "stable",
3434
"require": {
3535
"php": "^8.0",
36-
"league/flysystem": "^3.0.0",
36+
"league/flysystem": "^3.10.0",
3737
"illuminate/support": "^5.1 || ^6.0 || ^7.0 || ^9.0 || ^10.0",
3838
"mikey179/vfsstream": "^1.6"
3939
},

src/VfsFilesystemServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php namespace STS\Filesystem;
22

3+
use Illuminate\Filesystem\FilesystemAdapter;
34
use Illuminate\Support\Facades\Storage;
45
use League\Flysystem\Filesystem;
56
use Illuminate\Support\ServiceProvider as ServiceProvider;
@@ -21,7 +22,8 @@ public function boot()
2122
$vfsFileSystem = new Filesystem($client);
2223

2324
//return
24-
return $vfsFileSystem;
25+
// return $vfsFileSystem;
26+
return new FilesystemAdapter($vfsFileSystem, $client);
2527
});
2628

2729
}//end boot

0 commit comments

Comments
 (0)