@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | ); |
23 | 23 | |
24 | 24 | $this->app->make('filesystem') |
25 | - ->extend('aliyun', function ($app, array $config) { |
|
25 | + ->extend('aliyun', function($app, array $config) { |
|
26 | 26 | $client = $app->make('aliyun-oss.oss-client', $config); |
27 | 27 | $adapter = new AliyunOssAdapter($client, $config); |
28 | 28 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function register() |
35 | 35 | { |
36 | - $this->app->bind('aliyun-oss.oss-client', function ($app, array $config) { |
|
36 | + $this->app->bind('aliyun-oss.oss-client', function($app, array $config) { |
|
37 | 37 | return $app->make(OssClient::class, [ |
38 | 38 | 'accessKeyId' => $config['accessId'], |
39 | 39 | 'accessKeySecret' => $config['accessKey'], |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ]); |
44 | 44 | }); |
45 | 45 | |
46 | - $this->app->singleton('aliyun-oss.client', function ($app) { |
|
46 | + $this->app->singleton('aliyun-oss.client', function($app) { |
|
47 | 47 | $config = $app->get('config')->get('filesystems.disks.aliyun'); |
48 | 48 | return $app->make('aliyun-oss.oss-client', $config); |
49 | 49 | }); |