Merge pull request #9352 from nextcloud/backport/9350/stable25

[stable25] Use deprecated directive instead of note
This commit is contained in:
Christoph Wurst 2022-11-14 15:09:34 +01:00 committed by GitHub
commit 2c3b125226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -669,7 +669,8 @@ tbd
Hooks
-----
.. warning:: The hooks mechanism is deprecated. Use the `OCP event dispatcher`_ instead.
.. deprecated:: 18
Use the `OCP event dispatcher`_ instead.
.. sectionauthor:: Bernhard Posselt <dev@bernhard-posselt.com>
@ -853,8 +854,9 @@ Filesystem scanner hooks available in scope **\\OC\\Files\\Utils\\Scanner**:
Public emitter
--------------------
--------------
.. warning:: The public emitter mechanism is deprecated. Use the `OCP event dispatcher`_ instead.
.. deprecated:: 18
Use the `OCP event dispatcher`_ instead.
tbd

View File

@ -314,8 +314,10 @@ mapping, simply override the **columnToProperty** and **propertyToColumn** metho
.. _database-entity-slugs:
Slugs (deprecated)
^^^^^^^^^^^^^^^^^^
Slugs
^^^^^
.. deprecated:: 24
Slugs are used to identify resources in the URL by a string rather than integer id. Since the URL allows only certain values, the entity base class provides a slugify method for it:
@ -326,8 +328,6 @@ Slugs are used to identify resources in the URL by a string rather than integer
$author->setName('Some*thing');
$author->slugify('name'); // Some-thing
.. note:: Entity slugs have been deprecated with the release of Nextcloud 24
Supporting more databases
-------------------------