wiki.techinc.nl/includes/OutputTransform
C. Scott Ananian 292709cc13 Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory
Rather than have DefaultOutputPipelineFactory::CONSTRUCTOR_OPTIONS be a
union of all the options needed by all the stages, allow each stage to
define its own CONSTRUCTOR_OPTIONS and pass a Config object to the
DefaultOutputPipelineFactory service.

In the process, move the $options and $logger properties into the
abstract superclass, since they are passed to every stage.

Bug: T363764
Followup-To: I64aeb81b395ba84e1d839dfbd31decf16c337cd0
Change-Id: I7d386b22c7d8e99b6dfe4cf798069914ac9af373
2024-06-10 20:53:21 -04:00
..
Stages Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
ContentDOMTransformStage.php Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
ContentTextTransformStage.php Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
DefaultOutputPipelineFactory.php Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
OutputTransformPipeline.php [OutputTransform] Remove broken and unused 'bodyContentOnly' option 2024-02-15 13:05:53 -05:00
OutputTransformStage.php Use $stage::CONSTRUCTOR_OPTIONS in DefaultOutputPipelineFactory 2024-06-10 20:53:21 -04:00
README.md

Output transformations pipelines for wikitext

The classes in the Stages/ subdirectory contains HTML and DOM transforms for use in output processing pipelines, i.e. postprocessors for ParserOutput objects that either directly result from a parse or are fetched from ParserCache.

The default pipeline is created by DefaultOutputTransformFactory; it corresponds to what was previously contained in ParserOutput::getText. The shouldRun method in these stages uses defaults that indicates if the stage runs or not in the default OutputTransformPipeline.