From fecd6c56175b9ac53e6a205d5217ec16d4669a26 Mon Sep 17 00:00:00 2001 From: Benjamin Crozat Date: Mon, 26 Sep 2016 11:36:48 +0200 Subject: [PATCH] Clean up --- src/ServiceProvider.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 559410f..aeded8b 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -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']) + ) + ); }); }