Skip to content

Commit

Permalink
Merge pull request #13 from Se7endAY/master
Browse files Browse the repository at this point in the history
可以使用用户指定的配置
  • Loading branch information
overtrue authored Feb 11, 2023
2 parents 59ba5b6 + 8b8bac0 commit 524eaec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CosStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class CosStorageServiceProvider extends ServiceProvider
*/
public function boot()
{
Storage::extend('cos', function () {
$adapter = new CosAdapter(\config('filesystems.disks.cos'));
Storage::extend('cos', function ($app, $config) {
$adapter = new CosAdapter($config);

return new FilesystemAdapter(new Filesystem($adapter), $adapter);
});
Expand Down

0 comments on commit 524eaec

Please sign in to comment.