Skip to content

Commit 95d60f3

Browse files
authored
Merge pull request #45 from antwebstudio/dropbox-v2
Updated dropbox adapter library to use dropbox v2 api
2 parents d31afc4 + 137ec25 commit 95d60f3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"league/flysystem-azure": "~1.0",
3535
"league/flysystem-cached-adapter": "~1.0",
3636
"league/flysystem-copy": "~1.0",
37-
"league/flysystem-dropbox": "~1.0",
37+
"spatie/flysystem-dropbox": "~1.0",
3838
"league/flysystem-gridfs": "~1.0",
3939
"league/flysystem-rackspace": "~1.0",
4040
"league/flysystem-replicate-adapter": "~1.0",

src/DropboxFilesystem.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
namespace creocoder\flysystem;
99

10-
use Dropbox\Client;
11-
use League\Flysystem\Dropbox\DropboxAdapter;
10+
use Spatie\Dropbox\Client;
11+
use Spatie\FlysystemDropbox\DropboxAdapter;
1212
use yii\base\InvalidConfigException;
1313

1414
/**
@@ -53,8 +53,7 @@ public function init()
5353
protected function prepareAdapter()
5454
{
5555
return new DropboxAdapter(
56-
new Client($this->token, $this->app),
57-
$this->prefix
56+
new Client($this->token, $this->prefix),
5857
);
5958
}
6059
}

0 commit comments

Comments
 (0)