File tree 2 files changed +4
-28
lines changed 2 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 5
5
"description" : " Webman plugin webman-tech/laravel-filesystem" ,
6
6
"require" : {
7
7
"php" : " >=7.2" ,
8
- "illuminate/filesystem" : " >=7 .0" ,
8
+ "illuminate/filesystem" : " >=8 .0" ,
9
9
"league/flysystem" : " ^1.1|^3.0"
10
10
},
11
11
"require-dev" : {
12
12
"alphasnow/aliyun-oss-laravel" : " ^3.0|^4.0" ,
13
13
"iidestiny/flysystem-oss" : " ^2.1|^4.0" ,
14
- "illuminate/http" : " >=7 .0" ,
14
+ "illuminate/http" : " >=8 .0" ,
15
15
"overtrue/flysystem-cos" : " ^2|^3|^4|^5" ,
16
16
"overtrue/flysystem-qiniu" : " ^1|^3" ,
17
17
"phpunit/phpunit" : " ^8|^9" ,
Original file line number Diff line number Diff line change @@ -37,33 +37,9 @@ public function __construct()
37
37
/**
38
38
* @inheritDoc
39
39
*/
40
- public function createLocalDriver ( array $ config )
40
+ protected function adapt ( FilesystemInterface $ filesystem )
41
41
{
42
- return FilesystemAdapter::wrapper (parent ::createLocalDriver ($ config ));
43
- }
44
-
45
- /**
46
- * @inheritDoc
47
- */
48
- public function createFtpDriver (array $ config )
49
- {
50
- return FilesystemAdapter::wrapper (parent ::createFtpDriver ($ config ));
51
- }
52
-
53
- /**
54
- * @inheritDoc
55
- */
56
- public function createSftpDriver (array $ config )
57
- {
58
- return FilesystemAdapter::wrapper (parent ::createSftpDriver ($ config ));
59
- }
60
-
61
- /**
62
- * @inheritDoc
63
- */
64
- public function createS3Driver (array $ config )
65
- {
66
- return FilesystemAdapter::wrapper (parent ::createS3Driver ($ config ));
42
+ return FilesystemAdapter::wrapper (parent ::adapt ($ filesystem ));
67
43
}
68
44
69
45
/**
You can’t perform that action at this time.
0 commit comments