From 7cf53aedfd4fbdabe973d94e49115de6d649fce8 Mon Sep 17 00:00:00 2001 From: Guoqing Zou Date: Sat, 28 Dec 2024 06:55:35 +0000 Subject: [PATCH] fix: fof upload patch --- patches/fof-upload-src-adapters-manager-php.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/patches/fof-upload-src-adapters-manager-php.patch b/patches/fof-upload-src-adapters-manager-php.patch index 54d2f7c..4e57b0e 100644 --- a/patches/fof-upload-src-adapters-manager-php.patch +++ b/patches/fof-upload-src-adapters-manager-php.patch @@ -1,6 +1,14 @@ --- /dev/null +++ ../src/Adapters/Manager.php -@@ -39,7 +39,8 @@ +@@ -13,6 +13,7 @@ + namespace FoF\Upload\Adapters; + + use Aws\S3\S3Client; ++use Flarum\Foundation\Application; + use Flarum\Foundation\Paths; + use Flarum\Foundation\ValidationException; + use Flarum\Http\UrlGenerator; +@@ -38,7 +39,8 @@ protected Paths $paths, protected Util $util, protected SettingsRepositoryInterface $settings, @@ -10,7 +18,7 @@ ) { } -@@ -107,7 +108,8 @@ +@@ -106,7 +108,8 @@ $leagueAdapter = new AwsS3Adapter( new S3Client($s3Config),