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

BadMethodCallException on getWithMetadata #19

Open
glutaminefree opened this issue Mar 31, 2016 · 0 comments
Open

BadMethodCallException on getWithMetadata #19

glutaminefree opened this issue Mar 31, 2016 · 0 comments

Comments

@glutaminefree
Copy link

When I call

Yii::$app->fs->getWithMetadata('/path/to/file', ['mimetype']);

I get:

BadMethodCallException
Call to undefined method League\Flysystem\Filesystem::getWithMetadata

I found this
thephpleague/flysystem#461

Adding this line:

$this->filesystem->addPlugin(new \League\Flysystem\Plugin\GetWithMetadata());

to yii2-flysystem/src/Filesystem.php to end of init() method fix this bug. But it return all metadata, not only parameterss from second argument of function.

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