Skip to content

Commit 1e3ec7a

Browse files
Merge pull request #15630 from nextcloud/fix/hooks
feat: document removal of some legacy hooks
2 parents 157d6d7 + d23542d commit 1e3ec7a

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

‎developer_manual/release_notes/critical_changes.rst‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,27 @@ Removed front-end APIs and libraries
3232
Removed back-end APIs
3333
---------------------
3434

35-
- TBD
35+
Removed legacy hooks
36+
^^^^^^^^^^^^^^^^^^^^
37+
38+
Hooks were the predecessor of the current Nextcloud event system.
39+
They were deprecated in Nextcloud 17 in favor of the event system in general
40+
and specific hooks based on when a replacement event was available.
41+
With Nextcloud 36 the following hooks were removed,
42+
if your app relies on them please migrate to the replacement event.
43+
44+
.. list-table::
45+
:header-rows: 1
46+
:widths: 55 45
47+
48+
* - Hook
49+
- Replacement event
50+
* - ``\OC\Core\LostPassword\Controller\LostController::pre_passwordReset``
51+
- ``OC\Core\Events\BeforePasswordResetEvent``
52+
* - ``\OC\Core\LostPassword\Controller\LostController::post_passwordReset``
53+
- ``OC\Core\Events\PasswordResetEvent``
54+
* - ``\OCP\Versions::rollback``
55+
- ``OCA\Files_Versions\Events\VersionRestoredEvent``
3656

3757
Unified sharing
3858
---------------

0 commit comments

Comments
 (0)