mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #8510 from nextcloud/backport/8495/stable24
[stable24] Explain how to add several IDelegatedSettings in the key "settings"
This commit is contained in:
commit
f6965a4041
@ -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) {
|
||||
....
|
||||
}
|
||||
...
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user