From 3baef899fe6d6d4ffbf7106c507f8da16c53c3fd Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Thu, 4 Mar 2021 17:10:39 +0100 Subject: [PATCH] Move Exceptions to own namespace --- .../system/background/job/UnfurlUrlBackgroundJob.class.php | 6 +++--- .../lib/system/message/unfurl/UnfurlResponse.class.php | 3 +++ .../message/unfurl/{ => exception}/DownloadFailed.class.php | 2 +- .../message/unfurl/{ => exception}/ParsingFailed.class.php | 2 +- .../unfurl/{ => exception}/UrlInaccessible.class.php | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) rename wcfsetup/install/files/lib/system/message/unfurl/{ => exception}/DownloadFailed.class.php (89%) rename wcfsetup/install/files/lib/system/message/unfurl/{ => exception}/ParsingFailed.class.php (89%) rename wcfsetup/install/files/lib/system/message/unfurl/{ => exception}/UrlInaccessible.class.php (89%) diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index c747e160d1..0b38217688 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -6,10 +6,10 @@ use BadMethodCallException; use GuzzleHttp\Psr7\Response; use wcf\data\unfurl\url\UnfurlUrl; use wcf\data\unfurl\url\UnfurlUrlAction; -use wcf\system\message\unfurl\DownloadFailed; -use wcf\system\message\unfurl\ParsingFailed; +use wcf\system\message\unfurl\exception\DownloadFailed; +use wcf\system\message\unfurl\exception\ParsingFailed; +use wcf\system\message\unfurl\exception\UrlInaccessible; use wcf\system\message\unfurl\UnfurlResponse; -use wcf\system\message\unfurl\UrlInaccessible; use wcf\util\FileUtil; use wcf\util\StringUtil; diff --git a/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php b/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php index 7fdaa5908f..a038713c3b 100644 --- a/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php +++ b/wcfsetup/install/files/lib/system/message/unfurl/UnfurlResponse.class.php @@ -11,6 +11,9 @@ use GuzzleHttp\Psr7\Response; use GuzzleHttp\RequestOptions; use Psr\Http\Client\ClientExceptionInterface; use wcf\system\io\HttpFactory; +use wcf\system\message\unfurl\exception\DownloadFailed; +use wcf\system\message\unfurl\exception\ParsingFailed; +use wcf\system\message\unfurl\exception\UrlInaccessible; use wcf\util\ArrayUtil; use wcf\util\StringUtil; use wcf\util\Url; diff --git a/wcfsetup/install/files/lib/system/message/unfurl/DownloadFailed.class.php b/wcfsetup/install/files/lib/system/message/unfurl/exception/DownloadFailed.class.php similarity index 89% rename from wcfsetup/install/files/lib/system/message/unfurl/DownloadFailed.class.php rename to wcfsetup/install/files/lib/system/message/unfurl/exception/DownloadFailed.class.php index c9e776b297..4d163ee162 100644 --- a/wcfsetup/install/files/lib/system/message/unfurl/DownloadFailed.class.php +++ b/wcfsetup/install/files/lib/system/message/unfurl/exception/DownloadFailed.class.php @@ -1,6 +1,6 @@