From 82fe21f5d551e27749ab3149283f9118750ed7a5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 7 Jun 2024 18:30:10 +0200 Subject: [PATCH] Mark the legacy file system methods as deprecated --- .../install/files/lib/data/attachment/Attachment.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index 647f085a11..c66968aa2d 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -157,6 +157,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * @inheritDoc + * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ public function getLocation() { @@ -171,6 +172,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro * Returns the physical location of the tiny thumbnail. * * @return string + * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ public function getTinyThumbnailLocation() { @@ -179,6 +181,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * @inheritDoc + * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ public function getThumbnailLocation($size = '') { @@ -204,6 +207,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro * include the `.bin` suffix. * * @since 5.2 + * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ public function migrateStorage() { @@ -227,6 +231,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro * @param string $location * @return string * @since 5.2 + * @deprecated 6.1 This will no longer be required once the attachments have been migrated. */ final protected function getLocationHelper($location) { @@ -447,6 +452,8 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro /** * Returns the storage path. + * + * @deprecated 6.1 This method is no longer in use. */ public static function getStorage(): string { -- 2.20.1