b73fe26c29
Separating the extract algorithm from integration code. This results in a slightly cleaner code structure (at least in my opinion) and enables adding alternate algorithms without devolving into spaghetti. The DescriptionProvider (name of the new base interface) is exposed as a service through dependency injection to avoid factories. The implementation can be swapped at service instantiation time. Depends-On: I73c61ce045dcf31ac1ca5888f1548de8fd8b56ff Change-Id: I97fd065c9554837747021ba9fff26005e33270f4
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"name": "Description2",
|
|
"version": "0.4.1",
|
|
"author": [
|
|
"[http://danf.ca/mw/ Daniel Friesen]"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Description2",
|
|
"descriptionmsg": "description2-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "other",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.35.0"
|
|
},
|
|
"config": {
|
|
"EnableMetaDescriptionFunctions": false
|
|
},
|
|
"ConfigRegistry": {
|
|
"Description2": "GlobalVarConfig::newInstance"
|
|
},
|
|
"ServiceWiringFiles": [
|
|
"includes/ServiceWiring.php"
|
|
],
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\Extension\\Description2\\": "includes/"
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"Description2Magic": "Description2.i18n.magic.php"
|
|
},
|
|
"MessagesDirs": {
|
|
"Description2": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"HookHandlers": {
|
|
"Description2": {
|
|
"class": "MediaWiki\\Extension\\Description2\\Hooks",
|
|
"services": [
|
|
"ConfigFactory",
|
|
"Description2.DescriptionProvider"
|
|
]
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"OutputPageParserOutput": "Description2",
|
|
"ParserAfterTidy": "Description2",
|
|
"ParserFirstCallInit": "Description2"
|
|
},
|
|
"manifest_version": 1
|
|
}
|