Skip to content

Commit 913d20c

Browse files
authored
Merge pull request #13002 from nextcloud/backport/12999/stable31
[stable31] feat: Document user events added in 31 for user_ldap
2 parents 9207bfa + b37b5f2 commit 913d20c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,19 @@ Added APIs
5757

5858
- If an app supports file conversion, it may now register an ``\OCP\Files\Conversion\ConversionProvider`` which will
5959
be called automatically based on the supported MIME types. An app may register as many of these as needed.
60+
- New events ``OCP\User\Events\BeforeUserIdUnassignedEvent``, ``OCP\User\Events\UserIdUnassignedEvent``, and ``OCP\User\Events\UserIdAssignedEvent`` have been added to replace the hooks ``\OC\User::preUnassignedUserId``, ``\OC\User::postUnassignedUserId`` and ``\OC\User::assignedUserId``.
6061

6162
Changed APIs
6263
^^^^^^^^^^^^
6364

6465
- Legacy class ``OC_Image`` was moved to ``OC\Image``. You should never use it directly but use ``new \OCP\Image()`` instead for building the object and the ``OCP\IImage`` interface for calling methods.
66+
- ``OCP\Preview\BeforePreviewFetchedEvent`` constructor has a new parameter ``$mimeType`` which should be a string or null.
67+
- It has a new method ``getMimeType()`` to get the new property.
6568

6669
Deprecated APIs
6770
^^^^^^^^^^^^^^^
6871

69-
- TBD
72+
- Hooks ``\OC\User::preUnassignedUserId``, ``\OC\User::postUnassignedUserId`` and ``\OC\User::assignedUserId`` are deprecated, use the new events in OCP instead.
7073

7174
Removed APIs
7275
^^^^^^^^^^^^

0 commit comments

Comments
 (0)