overtrue / laravel-filesystem-qiniu

A Qiniu Storage filesystem for Laravel
471 stars 35 forks source link

部分方法存在报错 Call to undefined method League\Flysystem\Filesystem::getAdapter() #31

Closed hihuangwei closed 2 years ago

hihuangwei commented 2 years ago

以下方法存在报错

Call to undefined method League\Flysystem\Filesystem::getAdapter()

// fetch url content
$file = $disk->getAdapter()->fetch('folder/save_as.txt', $fromUrl);

// get file url
$url = $disk->getAdapter()->getUrl('folder/my_file.txt');

// get file upload token
$token = $disk->getAdapter()->getUploadToken('folder/my_file.txt');
$token = $disk->getAdapter()->getUploadToken('folder/my_file.txt', 3600);

// get private url
$url = $disk->getAdapter()->privateDownloadUrl('folder/my_file.txt');
overtrue commented 2 years ago

V3 已经不支持了

hihuangwei commented 2 years ago

@overtrue 用什么方法可以获取到这些数据

overtrue commented 2 years ago

我看看 laravel 的设计变更先

overtrue commented 2 years ago

@hihuangwei 再试试,我发个版

hihuangwei commented 2 years ago

overtrue / flysystem-qiniu 这个包是没问题了, laravel-filesystem-qiniu 又出现

Target class [access_key] does not exist.