mediawiki-extensions-Visual.../includes
Bartosz Dziewoński 8d735bbd9e Create Parsoid helper for use outside of action API
ApiParsoidTrait depends on some ApiBase methods, which is inconvenient
when one wishes to access Parsoid HTML outside of the action API. Move
the bulk of the code into a new class ParsoidHelper, which doesn't.

Replace the uses of methods:
* dieWithError: throw a different kind of exception where it makes
  sense, or change the method to return a StatusValue instead of
  throwing where it doesn't
* getPageLanguage: use Title::getPageLanguage() or pass as parameter
* getConfig: pass to constructor
* getLogger: pass to constructor
* getRequest: pass the only required part to constructor,
  leave some other API-specific code using it in ApiParsoidTrait

Bug: T314565
Change-Id: I90656cc74bb1cb1f2f3c82ad51cfb164cb8a4a4b
2022-08-10 23:20:59 +00:00
..
ApiParsoidTrait.php Create Parsoid helper for use outside of action API 2022-08-10 23:20:59 +00:00
ApiVisualEditor.php ApiVisualEditor: set title when expanding permission editnotices 2022-07-20 10:48:56 -04:00
ApiVisualEditorEdit.php ApiVisualEditorEdit: Re-order FlaggedRevs logic to avoid breakage 2022-08-01 16:23:10 -07:00
Hooks.php Remove unused media/meta-related messages 2022-07-13 13:56:41 +02:00
ParsoidHelper.php Create Parsoid helper for use outside of action API 2022-08-10 23:20:59 +00:00
ServiceWiring.php Introduce VisualEditorApiVisualEditorPostSaveHook 2021-04-30 20:50:01 +02:00
SpecialCollabPad.php Namespace rest of the extension 2022-03-14 22:27:15 +00:00
VisualEditorApiVisualEditorEditPostSaveHook.php Introduce VisualEditorApiVisualEditorPostSaveHook 2021-04-30 20:50:01 +02:00
VisualEditorApiVisualEditorEditPreSaveHook.php Allow hook implementations to modify params 2022-03-29 11:31:30 +00:00
VisualEditorBeforeEditorHook.php Remove 'Hook' from new hook's method name 2022-02-14 23:26:05 +00:00
VisualEditorDataModule.php Use new ResourceLoader namespace 2022-05-24 22:59:39 +00:00
VisualEditorDesktopArticleTargetInitModule.php Fix tab messages being changed wrong by JavaScript 2022-06-13 20:21:32 +02:00
VisualEditorHookRunner.php Allow hook implementations to modify params 2022-03-29 11:31:30 +00:00
VisualEditorParsoidClient.php Update call to PageConfigFactory::create to use new signature 2022-08-03 15:06:52 -05:00