Merge pull request #8511 from nextcloud/backport/8495/stable23

[stable23] Explain how to add several IDelegatedSettings in the key "settings"
This commit is contained in:
Daniel 2022-06-28 23:01:11 +02:00 committed by GitHub
commit d43e096eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,3 +176,20 @@ setting with annotations.
...
}
If you have several classes that implement `IDelegatedSettings` for a function. You must add them in the key "settings" and they must seperate with semi-colons.
.. code-block:: php
<?php
class NotesSettingsController extends Controller {
/**
* Save settings
* @PasswordConfirmationRequired
* @AuthorizedAdminSetting(settings=OCA\NotesTutorial\Settings\NotesAdmin;OCA\NotesTutorial\Settings\NotesSubAdmin)
*/
public function saveSettings($mySetting) {
....
}
...
}