@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | ); |
24 | 24 | |
25 | 25 | $this->app->make('filesystem') |
26 | - ->extend('aliyun', function ($app, array $config) { |
|
26 | + ->extend('aliyun', function($app, array $config) { |
|
27 | 27 | return $app->make('aliyun-oss.oss-filesystem', $config); |
28 | 28 | }); |
29 | 29 | } |
30 | 30 | |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->bind('aliyun-oss.oss-client', function ($app, array $config) { |
|
33 | + $this->app->bind('aliyun-oss.oss-client', function($app, array $config) { |
|
34 | 34 | $client = $app->make(OssClient::class, [ |
35 | 35 | 'accessKeyId' => $config['access_id'], |
36 | 36 | 'accessKeySecret' => $config['access_key'], |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return $client; |
43 | 43 | }); |
44 | 44 | |
45 | - $this->app->bind('aliyun-oss.oss-filesystem', function ($app, array $config) { |
|
45 | + $this->app->bind('aliyun-oss.oss-filesystem', function($app, array $config) { |
|
46 | 46 | $client = $app->make('aliyun-oss.oss-client', $config); |
47 | 47 | $adapter = new AliyunOssAdapter($client, $config); |
48 | 48 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | return $filesystem; |
52 | 52 | }); |
53 | 53 | |
54 | - $this->app->singleton('aliyun-oss.client', function ($app) { |
|
54 | + $this->app->singleton('aliyun-oss.client', function($app) { |
|
55 | 55 | $config = $app->get('config')->get('filesystems.disks.aliyun'); |
56 | 56 | return $app->make('aliyun-oss.oss-client', $config); |
57 | 57 | }); |