Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么无法访问 AliOssAdapter 里的方法呢? #70

Open
izzhip opened this issue Mar 23, 2019 · 0 comments
Open

为什么无法访问 AliOssAdapter 里的方法呢? #70

izzhip opened this issue Mar 23, 2019 · 0 comments

Comments

@izzhip
Copy link

izzhip commented Mar 23, 2019

在我的 ImageController 里,使用如下代码的时候

$url = Storage::getUrl($path);
dd($url);

得到了一个错误的提示

Call to undefined method League\Flysystem\Filesystem::getUrl

AliOssAdapter 有些方法可以访问,有些却不行。

比如我将 AliOssAdapter 里的方法 getSize($path) 改写为如下

public function getSize($path)
{
    return $path;
}

然后在我的 ImageController 里

$url = Storage::getSize($path);
dd($url);

然后又能够 dd,这就说明使用 getSize 方法的时候,已经进入了 AliOssAdapter 的 getSize 方法。
那为什么AliOssAdapter 的 getUrl 方法却无法使用呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant