@@ -30,19 +30,19 @@ |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | $this->app->make('filesystem') |
33 | - ->extend('cosv5', function ($app, $config) { |
|
34 | - $client = new Client($config); |
|
35 | - $flysystem = new Filesystem(new Adapter($client, $config), $config); |
|
33 | + ->extend('cosv5', function ($app, $config) { |
|
34 | + $client = new Client($config); |
|
35 | + $flysystem = new Filesystem(new Adapter($client, $config), $config); |
|
36 | 36 | |
37 | - $flysystem->addPlugin(new PutRemoteFile()); |
|
38 | - $flysystem->addPlugin(new PutRemoteFileAs()); |
|
39 | - $flysystem->addPlugin(new GetUrl()); |
|
40 | - $flysystem->addPlugin(new CDN()); |
|
41 | - $flysystem->addPlugin(new TCaptcha()); |
|
42 | - $flysystem->addPlugin(new GetFederationToken()); |
|
37 | + $flysystem->addPlugin(new PutRemoteFile()); |
|
38 | + $flysystem->addPlugin(new PutRemoteFileAs()); |
|
39 | + $flysystem->addPlugin(new GetUrl()); |
|
40 | + $flysystem->addPlugin(new CDN()); |
|
41 | + $flysystem->addPlugin(new TCaptcha()); |
|
42 | + $flysystem->addPlugin(new GetFederationToken()); |
|
43 | 43 | |
44 | - return $flysystem; |
|
45 | - }); |
|
44 | + return $flysystem; |
|
45 | + }); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |