@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Freyo\Flysystem\QcloudCOSv4\Plugins\PutRemoteFile; |
| 7 | 7 | use Freyo\Flysystem\QcloudCOSv4\Plugins\PutRemoteFileAs; |
| 8 | 8 | use Illuminate\Foundation\Application as LaravelApplication; |
| 9 | -use Illuminate\Support\Facades\Storage; |
|
| 10 | 9 | use Illuminate\Support\ServiceProvider as LaravelServiceProvider; |
| 11 | 10 | use Laravel\Lumen\Application as LumenApplication; |
| 12 | 11 | use League\Flysystem\Filesystem; |
@@ -36,13 +36,13 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $this->app->make('filesystem') |
| 39 | - ->extend('cosv4', function ($app, $config) { |
|
| 40 | - return new Filesystem(new Adapter($config)); |
|
| 41 | - }) |
|
| 42 | - ->disk('cosv4') |
|
| 43 | - ->addPlugin(new PutRemoteFile()) |
|
| 44 | - ->addPlugin(new PutRemoteFileAs()) |
|
| 45 | - ->addPlugin(new GetUrl()); |
|
| 39 | + ->extend('cosv4', function ($app, $config) { |
|
| 40 | + return new Filesystem(new Adapter($config)); |
|
| 41 | + }) |
|
| 42 | + ->disk('cosv4') |
|
| 43 | + ->addPlugin(new PutRemoteFile()) |
|
| 44 | + ->addPlugin(new PutRemoteFileAs()) |
|
| 45 | + ->addPlugin(new GetUrl()); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |