mediawiki-extensions-TextEx.../extension.json
Umherirrender ce0bcb5c82 Use HookHandlers for core hooks
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
2023-08-14 19:49:09 +02:00

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
}