From d23542d7735ddc2bd0a3dabd6fd7c38ab13c9016 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 16 Sep 2026 19:21:57 +0200 Subject: [PATCH] feat: document removal of some legacy hooks Signed-off-by: Ferdinand Thiessen --- .../release_notes/critical_changes.rst | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/developer_manual/release_notes/critical_changes.rst b/developer_manual/release_notes/critical_changes.rst index 68a2ef2bfc5..8ab12fb04ed 100644 --- a/developer_manual/release_notes/critical_changes.rst +++ b/developer_manual/release_notes/critical_changes.rst @@ -32,7 +32,27 @@ Removed front-end APIs and libraries Removed back-end APIs --------------------- -- TBD +Removed legacy hooks +^^^^^^^^^^^^^^^^^^^^ + +Hooks were the predecessor of the current Nextcloud event system. +They were deprecated in Nextcloud 17 in favor of the event system in general +and specific hooks based on when a replacement event was available. +With Nextcloud 36 the following hooks were removed, +if your app relies on them please migrate to the replacement event. + +.. list-table:: + :header-rows: 1 + :widths: 55 45 + + * - Hook + - Replacement event + * - ``\OC\Core\LostPassword\Controller\LostController::pre_passwordReset`` + - ``OC\Core\Events\BeforePasswordResetEvent`` + * - ``\OC\Core\LostPassword\Controller\LostController::post_passwordReset`` + - ``OC\Core\Events\PasswordResetEvent`` + * - ``\OCP\Versions::rollback`` + - ``OCA\Files_Versions\Events\VersionRestoredEvent`` Unified sharing ---------------