Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Crozat committed Sep 26, 2016
1 parent e8ab1bf commit fecd6c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
public function boot()
{
Storage::extend('dropbox', function ($app, $config) {
$client = new DropboxClient($config['token'], $config['app_secret']);

return new Filesystem(new DropboxAdapter($client));
return new Filesystem(
new DropboxAdapter(
new DropboxClient($config['token'], $config['app_secret'])
)
);
});
}

Expand Down

0 comments on commit fecd6c5

Please sign in to comment.