Skip to content

Commit 4656298

Browse files
authored
Merge pull request #32 from hihuangwei/patch-2
2 parents e060580 + e1ef2f9 commit 4656298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QiniuStorageServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class QiniuStorageServiceProvider extends ServiceProvider
1111
{
1212
public function boot()
1313
{
14-
app('filesystem')->extend('qiniu', function ($config) {
14+
app('filesystem')->extend('qiniu', function ($app, $config) {
1515
$adapter = new QiniuAdapter(
1616
$config['access_key'],
1717
$config['secret_key'],
1818
$config['bucket'],
1919
$config['domain']
2020
);
2121

22-
return new FilesystemAdapter(new Filesystem($adapter), $adapter);
22+
return new FilesystemAdapter(new Filesystem($adapter), $adapter, $config);
2323
});
2424
}
2525
}

0 commit comments

Comments
 (0)