mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #9065 from jilleJr/patch-2
Dev settings docs: implement interface, not extend
This commit is contained in:
@@ -19,7 +19,7 @@ In our case we will create an admin section class in **<myapp>/lib/Sections/Note
|
||||
use OCP\IURLGenerator;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class NotesAdmin extends IIconSection {
|
||||
class NotesAdmin implements IIconSection {
|
||||
private IL10N $l;
|
||||
private IURLGenerator $urlGenerator;
|
||||
|
||||
@@ -59,7 +59,7 @@ in *<myapp>/lib/Settings/NotesAdmin.php**.
|
||||
use OCP\IL10N;
|
||||
use OCP\Settings\ISettings;
|
||||
|
||||
class NotesAdmin extends ISettings {
|
||||
class NotesAdmin implements ISettings {
|
||||
private IL10N $l;
|
||||
private IConfig $config;
|
||||
|
||||
@@ -125,7 +125,7 @@ and implement two additional methods.
|
||||
use OCP\IL10N;
|
||||
use OCP\Settings\IDelegatedSettings;
|
||||
|
||||
class NotesAdmin extends IDelegatedSettings {
|
||||
class NotesAdmin implements IDelegatedSettings {
|
||||
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user