[MCR] Introduce SlotRoleHandler and SlotRoleRegistry
authordaniel <dkinzler@wikimedia.org>
Mon, 19 Nov 2018 11:39:56 +0000 (12:39 +0100)
committerdaniel <dkinzler@wikimedia.org>
Fri, 30 Nov 2018 20:29:05 +0000 (12:29 -0800)
commitdb987c700adfe8766316d56f2b4e05935e09d6a4
tree874aff9f7995412f015102e79b25008a90f004aa
parent38dfb025e5c95f450c55de36f4e5dbaf8800e3b4
[MCR] Introduce SlotRoleHandler and SlotRoleRegistry

These new classes provide a mechanism for defining the
behavior of slots, like the content models it supports.
This acts as an extension point for extensions that need
to define custom slots, like the MediaInfo extension
for the SDC project.

Bug: T194046
Change-Id: Ia20c98eee819293199e541be75b5521f6413bc2f
39 files changed:
includes/DefaultSettings.php
includes/MWNamespace.php
includes/MediaWikiServices.php
includes/MovePage.php
includes/Revision/FallbackSlotRoleHandler.php [new file with mode: 0644]
includes/Revision/MainSlotRoleHandler.php [new file with mode: 0644]
includes/Revision/RenderedRevision.php
includes/Revision/RevisionRenderer.php
includes/Revision/RevisionStore.php
includes/Revision/RevisionStoreFactory.php
includes/Revision/SlotRoleHandler.php [new file with mode: 0644]
includes/Revision/SlotRoleRegistry.php [new file with mode: 0644]
includes/ServiceWiring.php
includes/Storage/DerivedPageDataUpdater.php
includes/Storage/PageUpdater.php
includes/Title.php
includes/api/ApiComparePages.php
includes/api/ApiQueryRevisionsBase.php
includes/content/Content.php
includes/content/ContentHandler.php
includes/diff/DifferenceEngine.php
includes/page/WikiPage.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/Revision/FallbackSlotRoleHandlerTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/MainSlotRoleHandlerTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/RevisionRendererTest.php
tests/phpunit/includes/Revision/RevisionStoreDbTestBase.php
tests/phpunit/includes/Revision/RevisionStoreFactoryTest.php
tests/phpunit/includes/Revision/RevisionStoreTest.php
tests/phpunit/includes/Revision/SlotRoleHandlerTest.php [new file with mode: 0644]
tests/phpunit/includes/Revision/SlotRoleRegistryTest.php [new file with mode: 0644]
tests/phpunit/includes/RevisionDbTestBase.php
tests/phpunit/includes/RevisionTest.php
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/Storage/PageUpdaterTest.php
tests/phpunit/includes/jobqueue/jobs/RefreshLinksJobTest.php
tests/phpunit/includes/page/WikiPageDbTestBase.php
tests/phpunit/includes/page/WikiPageMcrReadNewDbTest.php