@@ -27,16 +27,16 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | $this->app->make('filesystem') |
30 | - ->extend('cosv4', function ($app, $config) { |
|
31 | - $cosApi = new Api($config); |
|
32 | - $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
|
30 | + ->extend('cosv4', function ($app, $config) { |
|
31 | + $cosApi = new Api($config); |
|
32 | + $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
|
33 | 33 | |
34 | - $flysystem->addPlugin(new PutRemoteFile()); |
|
35 | - $flysystem->addPlugin(new PutRemoteFileAs()); |
|
36 | - $flysystem->addPlugin(new GetUrl()); |
|
34 | + $flysystem->addPlugin(new PutRemoteFile()); |
|
35 | + $flysystem->addPlugin(new PutRemoteFileAs()); |
|
36 | + $flysystem->addPlugin(new GetUrl()); |
|
37 | 37 | |
38 | - return $flysystem; |
|
39 | - }); |
|
38 | + return $flysystem; |
|
39 | + }); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -27,7 +27,7 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | $this->app->make('filesystem') |
30 | - ->extend('cosv4', function ($app, $config) { |
|
30 | + ->extend('cosv4', function($app, $config) { |
|
31 | 31 | $cosApi = new Api($config); |
32 | 32 | $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
33 | 33 |