Can't use dropbox, app must be set
coffeestains1908 opened this issue · 0 comments
coffeestains1908 commented
Usage
Yii::$app->fs->write('filename.ext', 'contents');
Error - Configs
Invalid Configuration – yii\base\InvalidConfigException
The "app" property must be set.
'fs' => [
'class' => 'dosamigos\flysystem\DropboxFsComponent',
'token' => 'token',
],
TypeError
Argument 2 passed to Spatie\Dropbox\Client::__construct() must be an instance of GuzzleHttp\Client or null, string given, called in C:\xampp\htdocs\yii-adserve\vendor\2amigos\yii2-flysystem-component\src\DropboxFsComponent.php on line 53
'fs' => [
'class' => 'dosamigos\flysystem\DropboxFsComponent',
'token' => 'token',
'app' => 'yii2-dropbox'
],