X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpreferences%2FPreferencesFactory.php;h=22d0a77562ef0c3259d40b7dcb066ec634aac79b;hp=35237be47858d7aa413a9aeed7d343b43cdfa285;hb=571a44a4bef0cdecc329636bfaa8f3935380c3f0;hpb=58858df842f91d9ea1c9f9b6f3c767d8b204886b diff --git a/includes/preferences/PreferencesFactory.php b/includes/preferences/PreferencesFactory.php index 35237be478..22d0a77562 100644 --- a/includes/preferences/PreferencesFactory.php +++ b/includes/preferences/PreferencesFactory.php @@ -22,14 +22,15 @@ namespace MediaWiki\Preferences; use HTMLForm; use IContextSource; +use PreferencesFormOOUI; use User; /** * A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a * given user. These definitions are in the form of an HTMLForm descriptor. * - * PreferencesForm (a subclass of HTMLForm) is used to generate the Preferences form, and handles - * generic submission, CSRF protection, layout and other logic in a reusable manner. + * PreferencesFormLegacy (a subclass of HTMLForm) is used to generate the Preferences form, and + * handles generic submission, CSRF protection, layout and other logic in a reusable manner. * * In order to generate the form, the HTMLForm object needs an array structure detailing the * form fields available, and that's what this implementations of this interface provide. Each @@ -62,7 +63,7 @@ interface PreferencesFactory { public function getForm( User $user, IContextSource $contextSource, - $formClass = 'PreferencesForm', + $formClass = PreferencesFormOOUI::class, array $remove = [] );