Skip to content

Commit 312d6d0

Browse files
committed
➖ refactor: url_prefixed check
1 parent f906cbe commit 312d6d0

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
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
"laravel/framework": "^9.0",
15-
"alphasnow/aliyun-oss-flysystem": "^3.2"
15+
"alphasnow/aliyun-oss-flysystem": "3.3"
1616
},
1717
"require-dev": {
1818
"mockery/mockery": "^1.5",

src/AliyunAdapter.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/AliyunServiceProvider.php

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

33
namespace AlphaSnow\LaravelFilesystem\Aliyun;
44

5+
use AlphaSnow\Flysystem\Aliyun\AliyunAdapter;
56
use AlphaSnow\Flysystem\Aliyun\AliyunFactory;
67
use Illuminate\Contracts\Container\BindingResolutionException;
78
use Illuminate\Contracts\Foundation\Application;
@@ -54,7 +55,7 @@ public function boot()
5455
{
5556
$this->app->make("filesystem")
5657
->extend("oss", function (Application $app, array $config) {
57-
$config["use_url_prefix"] = version_compare($app->version(), "9.33.0", "<");
58+
$config["url_prefixed"] = version_compare($app->version(), "9.33.0", ">=");
5859
$client = $app->make(AliyunFactory::class)->createClient($config);
5960
$adapter = new AliyunAdapter($client, $config["bucket"], $config["prefix"] ?? "", $config);
6061
$driver = new Filesystem($adapter);

0 commit comments

Comments
 (0)