mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-27 09:30:09 +00:00
ce0bcb5c82
The use of "HookHandlers" attribute in extension.json makes it possible to inject services into hook handler classes in a future patch. Bug: T271032 Change-Id: I612c09264b830fe5588aafdad80a9eebaa66d71b
70 lines
1.2 KiB
JSON
70 lines
1.2 KiB
JSON
{
|
|
"name": "TextExtracts",
|
|
"author": [
|
|
"Max Semenik"
|
|
],
|
|
"requires": {
|
|
"MediaWiki": ">= 1.40.0"
|
|
},
|
|
"url": "https://www.mediawiki.org/wiki/Extension:TextExtracts",
|
|
"descriptionmsg": "textextracts-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "other",
|
|
"ConfigRegistry": {
|
|
"textextracts": "GlobalVarConfig::newInstance"
|
|
},
|
|
"APIPropModules": {
|
|
"extracts": {
|
|
"class": "TextExtracts\\ApiQueryExtracts",
|
|
"services": [
|
|
"ConfigFactory",
|
|
"MainWANObjectCache",
|
|
"LanguageConverterFactory",
|
|
"WikiPageFactory"
|
|
]
|
|
}
|
|
},
|
|
"MessagesDirs": {
|
|
"TextExtracts": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"TextExtracts\\": "includes/"
|
|
},
|
|
"Hooks": {
|
|
"ApiOpenSearchSuggest": "main"
|
|
},
|
|
"HookHandlers": {
|
|
"main": {
|
|
"class": "TextExtracts\\Hooks"
|
|
}
|
|
},
|
|
"config": {
|
|
"ExtractsRemoveClasses": {
|
|
"value": [
|
|
"table",
|
|
"div",
|
|
"figure",
|
|
"script",
|
|
"input",
|
|
"style",
|
|
"ul.gallery",
|
|
".mw-editsection",
|
|
"sup.reference",
|
|
"ol.references",
|
|
".error",
|
|
".nomobile",
|
|
".noprint",
|
|
".noexcerpt",
|
|
".sortkey"
|
|
]
|
|
},
|
|
"ExtractsExtendOpenSearchXml": {
|
|
"value": false
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|