From: Tim Düsterhus Date: Wed, 22 Sep 2021 08:36:53 +0000 (+0200) Subject: Remove add() and update() from ISearchIndexManager X-Git-Tag: 5.5.0_Alpha_1~428^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc6a82a2a496f2e71d77d8515e84790fc6b45422;p=GitHub%2FWoltLab%2FWCF.git Remove add() and update() from ISearchIndexManager These methods are long-deprecated, remove them from the interface to not force search engine authors to implement these. It is expected that code consuming the search API uses the `SearchIndexManager` class instead of directly accessing a specific `*SearchIndexManager`. The `SearchIndexManager` only uses `->set()` on the underlying actual `*SearchIndexManager`. Thus no compatibility break is expected. --- diff --git a/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php index 8c4fc52fa1..38b645fc4a 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchIndexManager.class.php @@ -37,58 +37,6 @@ interface ISearchIndexManager $metaData = '' ); - /** - * Adds a new entry. - * - * @param string $objectType - * @param int $objectID - * @param string $message - * @param string $subject - * @param int $time - * @param int $userID - * @param string $username - * @param int $languageID - * @param string $metaData - * @deprecated 3.0 - please use `set()` instead - */ - public function add( - $objectType, - $objectID, - $message, - $subject, - $time, - $userID, - $username, - $languageID = null, - $metaData = '' - ); - - /** - * Updates the search index. - * - * @param string $objectType - * @param int $objectID - * @param string $message - * @param string $subject - * @param int $time - * @param int $userID - * @param string $username - * @param int $languageID - * @param string $metaData - * @deprecated 3.0 - please use `set() instead` - */ - public function update( - $objectType, - $objectID, - $message, - $subject, - $time, - $userID, - $username, - $languageID = null, - $metaData = '' - ); - /** * Deletes search index entries. * diff --git a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php index ca72ebe301..4c51d7afa1 100644 --- a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php @@ -130,7 +130,6 @@ class SearchIndexManager extends SingletonFactory implements ISearchIndexManager } /** - * @inheritDoc * @deprecated 3.0 - please use `set() instead` */ public function add( @@ -148,7 +147,6 @@ class SearchIndexManager extends SingletonFactory implements ISearchIndexManager } /** - * @inheritDoc * @deprecated 3.0 - please use `set() instead` */ public function update(