[MCR] Introduce RevisionRenderer
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 7 Aug 2018 16:52:40 +0000 (18:52 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 30 Aug 2018 17:15:12 +0000 (19:15 +0200)
commite9f71517f7e4594d3be085382423435b1e2c47dc
treeb3eb665c0d3db44a210e5751f5500e9590d160bf
parentba6c8274856d34f9e524ce66e707f19555c31f1f
[MCR] Introduce RevisionRenderer

RevisionRenderer is the MCR replacement for Content::getParserOutput,
as outlined in <https://www.mediawiki.org/wiki/User:Daniel_Kinzler_(WMDE)/MCR-PageUpdater>.

Note: This change also introduces quite a bit of code for
merging ParserOutput objects.

Bug: T194048
Change-Id: I871978bf79f67c9e7954fb3fc8528d6e365f2cc1
20 files changed:
autoload.php
includes/MediaWikiServices.php
includes/Revision/RenderedRevision.php [new file with mode: 0644]
includes/Revision/RevisionRenderer.php [new file with mode: 0644]
includes/ServiceWiring.php
includes/Storage/DerivedPageDataUpdater.php
includes/Storage/MutableRevisionRecord.php
includes/Storage/PageUpdater.php
includes/content/AbstractContent.php
includes/page/WikiPage.php
includes/parser/Parser.php
includes/parser/ParserOptions.php
includes/parser/ParserOutput.php
tests/phpunit/includes/Revision/RenderedRevisionTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionRendererTest.php [new file with mode: 0644]
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/Storage/MutableRevisionRecordTest.php
tests/phpunit/includes/Storage/PageUpdaterTest.php
tests/phpunit/includes/parser/ParserOptionsTest.php
tests/phpunit/includes/parser/ParserOutputTest.php