creocoder / yii2-flysystem

The Flysystem integration for the Yii framework.
Other
283 stars 76 forks source link

DropboxFilesystem prepareAdapter is wrong #49

Closed mikk150 closed 2 years ago

mikk150 commented 2 years ago

I think https://github.com/creocoder/yii2-flysystem/blob/1fdef0883316f891ecb512011cac462213156e38/src/DropboxFilesystem.php#L56

line is wrong, since Spatie\Dropbox\Client second parameter should be Guzzle client not prefix

It should probably be

        return new DropboxAdapter(
            new Client($this->token),
            $this->prefix
        );
schmunk42 commented 2 years ago

Available in https://github.com/creocoder/yii2-flysystem/releases/tag/1.1.0