Skip to content

Commit 12080e6

Browse files
committed
fix: Change getOptionsFromConfig visibility to public
1 parent 586b9df commit 12080e6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": ">=7.0.0",
15-
"alphasnow/aliyun-oss-flysystem": "^1.0"
15+
"alphasnow/aliyun-oss-flysystem": "^1.3"
1616
},
1717
"require-dev": {
1818
"mockery/mockery": "~1.0",

src/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(OssClient $ossClient, Config $ossConfig)
2828
/**
2929
* {@inheritdoc}
3030
*/
31-
protected function getOptionsFromConfig(FlysystemConfig $config)
31+
public function getOptionsFromConfig(FlysystemConfig $config)
3232
{
3333
$options = parent::getOptionsFromConfig($config);
3434

src/ServiceProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace AlphaSnow\AliyunOss;
44

5+
use AlphaSnow\Flysystem\AliyunOss\Plugins\AppendContent;
56
use AlphaSnow\AliyunOss\Plugins\PutRemoteFile;
67
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
78
use League\Flysystem\Config as FlysystemConfig;
@@ -49,6 +50,7 @@ public function register()
4950

5051
$filesystem = new Filesystem($adapter, new FlysystemConfig(['disable_asserts' => true]));
5152
$filesystem->addPlugin(new PutRemoteFile());
53+
$filesystem->addPlugin(new AppendContent());
5254
return $filesystem;
5355
});
5456
}

0 commit comments

Comments
 (0)