Skip to content

Commit 599fb2a

Browse files
committed
✅ test: MacroTest
1 parent 16f8066 commit 599fb2a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
],
1313
"require": {
1414
"laravel/framework": "^9.33.0",
15-
"alphasnow/aliyun-oss-flysystem": "^3.0"
15+
"alphasnow/aliyun-oss-flysystem": "^3.2.10"
1616
},
1717
"require-dev": {
1818
"mockery/mockery": "^1.5",
1919
"phpunit/phpunit": "^9.5",
20-
"friendsofphp/php-cs-fixer": "^3.6",
21-
"phpstan/phpstan": "^1.4",
22-
"orchestra/testbench": "^7.0",
23-
"php-coveralls/php-coveralls": "^2.5"
20+
"friendsofphp/php-cs-fixer": "^3.12",
21+
"phpstan/phpstan": "^1.9",
22+
"orchestra/testbench": "^7.13",
23+
"php-coveralls/php-coveralls": "*"
2424
},
2525
"autoload": {
2626
"psr-4": {

src/AliyunServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function boot()
5454
{
5555
$this->app->make("filesystem")
5656
->extend("oss", function (Application $app, array $config) {
57-
$client = (new AliyunFactory())->createClient($config);
57+
$client = $app->make(AliyunFactory::class)->createClient($config);
5858
$adapter = new AliyunAdapter($client, $config["bucket"], $config["prefix"] ?? "", $config);
5959
$driver = new Filesystem($adapter);
6060
$filesystem = new FilesystemAdapter($driver, $adapter, $config);

0 commit comments

Comments
 (0)