Skip to content

Commit

Permalink
Merge pull request #9 from wjfz/master
Browse files Browse the repository at this point in the history
修复 Storage::extend 返回
  • Loading branch information
overtrue authored Feb 17, 2022
2 parents 8d65999 + 7409591 commit 676ac34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CosStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Overtrue\LaravelFilesystem\Cos;

use Illuminate\Filesystem\FilesystemAdapter;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\Filesystem;
Expand All @@ -17,7 +18,7 @@ public function boot()
Storage::extend('cos', function () {
$adapter = new CosAdapter(\config('filesystems.disks.cos'));

return new Filesystem($adapter);
return new FilesystemAdapter(new Filesystem($adapter), $adapter);
});
}

Expand Down

0 comments on commit 676ac34

Please sign in to comment.