Skip to content

Commit cdd57a6

Browse files
committed
Initialized 9.0 for Laravel 9
1 parent 9fc0835 commit cdd57a6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Qiniu 云储存 Laravel 5 Storage版
1+
# Qiniu 云储存 Laravel 5/6/7/8/9 Storage版
22

33
基于 https://github.com/qiniu/php-sdk 开发
44

5-
符合Laravel 5 的Storage用法。
5+
符合Laravel 5/6/7/8/9 的Storage用法。
66

77
## 注意
88

@@ -18,6 +18,9 @@
1818

1919
## 更新
2020

21+
v9.0
22+
支持 Laravel 9
23+
2124
v0.10
2225
支持“公开空间”的 CDN 时间戳防盗链
2326

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zgldh/qiniu-laravel-storage",
33
"type": "library",
4-
"description": "Qiniu Resource (Cloud) Storage SDK for Laravel 5",
4+
"description": "Qiniu Resource (Cloud) Storage SDK for Laravel 5/6/7/8/9",
55
"keywords": [
66
"qiniu",
77
"storage",
@@ -26,7 +26,7 @@
2626
"require": {
2727
"php": ">=5.3.3",
2828
"qiniu/php-sdk": "^7.2",
29-
"league/flysystem": "^1.0"
29+
"league/flysystem": "^3.0"
3030
},
3131
"autoload": {
3232
"psr-4": {

src/QiniuFilesystemServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php namespace zgldh\QiniuStorage;
22

3+
use Illuminate\Filesystem\FilesystemAdapter;
34
use Illuminate\Support\Facades\Storage;
45
use League\Flysystem\Filesystem;
56
use Illuminate\Support\ServiceProvider;
@@ -62,7 +63,7 @@ function ($app, $config) {
6263
$file_system->addPlugin(new WithUploadToken());
6364
$file_system->addPlugin(new LastReturn());
6465

65-
return $file_system;
66+
return new FilesystemAdapter($file_system, $qiniu_adapter, $config);
6667
}
6768
);
6869
}

0 commit comments

Comments
 (0)