{
	"name": "Gadgets",
	"author": [
		"Daniel Kinzler",
		"Max Semenik",
		"Timo Tijhof",
		"Siddharth VP"
	],
	"url": "https://www.mediawiki.org/wiki/Extension:Gadgets",
	"descriptionmsg": "gadgets-desc",
	"license-name": "GPL-2.0-or-later",
	"requires": {
		"MediaWiki": ">= 1.45"
	},
	"type": "other",
	"ContentHandlers": {
		"GadgetDefinition": {
			"class": "MediaWiki\\Extension\\Gadgets\\Content\\GadgetDefinitionContentHandler",
			"services": [
				"GadgetsRepo"
			]
		}
	},
	"SpecialPages": {
		"Gadgets": {
			"class": "MediaWiki\\Extension\\Gadgets\\Special\\SpecialGadgets",
			"services": [
				"ContentLanguage",
				"GadgetsRepo",
				"SkinFactory"
			]
		},
		"GadgetUsage": {
			"class": "MediaWiki\\Extension\\Gadgets\\Special\\SpecialGadgetUsage",
			"services": [
				"GadgetsRepo",
				"ConnectionProvider"
			]
		}
	},
	"APIListModules": {
		"gadgetcategories": {
			"class": "MediaWiki\\Extension\\Gadgets\\Api\\ApiQueryGadgetCategories",
			"services": [
				"GadgetsRepo"
			]
		},
		"gadgets": {
			"class": "MediaWiki\\Extension\\Gadgets\\Api\\ApiQueryGadgets",
			"services": [
				"GadgetsRepo"
			]
		}
	},
	"MessagesDirs": {
		"Gadgets": [
			"i18n",
			"i18n/api"
		]
	},
	"ExtensionMessagesFiles": {
		"GadgetsAlias": "Gadgets.alias.php"
	},
	"RawHtmlMessages": [
		"gadgets-definition"
	],
	"AutoloadNamespaces": {
		"MediaWiki\\Extension\\Gadgets\\": "includes/"
	},
	"TestAutoloadClasses": {
		"GadgetTestTrait": "tests/phpunit/GadgetTestTrait.php"
	},
	"HookHandlers": {
		"GadgetHooks": {
			"class": "MediaWiki\\Extension\\Gadgets\\Hooks",
			"services": [
				"GadgetsRepo",
				"UserOptionsLookup"
			]
		},
		"GadgetCodeEditorHooks": {
			"class": "MediaWiki\\Extension\\Gadgets\\CodeEditorHooks",
			"services": [
				"MainConfig"
			]
		},
		"GadgetCodeMirrorHooks": {
			"class": "MediaWiki\\Extension\\Gadgets\\CodeMirrorHooks",
			"services": [
				"MainConfig"
			]
		}
	},
	"Hooks": {
		"BeforePageDisplay": "GadgetHooks",
		"CodeEditorGetPageLanguage": "GadgetCodeEditorHooks",
		"CodeMirrorGetMode": "GadgetCodeMirrorHooks",
		"ContentHandlerDefaultModelFor": "GadgetHooks",
		"UserGetDefaultOptions": "GadgetHooks",
		"GetPreferences": "GadgetHooks",
		"PreferencesGetLegend": "GadgetHooks",
		"ResourceLoaderRegisterModules": "GadgetHooks",
		"wgQueryPages": "GadgetHooks",
		"DeleteUnknownPreferences": "GadgetHooks",
		"PreferencesGetIcon": "GadgetHooks",
		"getUserPermissionsErrors": "GadgetHooks"
	},
	"DomainEventIngresses": [
		{
			"events": [
				"PageRevisionUpdated",
				"PageDeleted"
			],
			"class": "MediaWiki\\Extension\\Gadgets\\EventIngress",
			"services": [
				"GadgetsRepo"
			]
		}
	],
	"ServiceWiringFiles": [
		"includes/ServiceWiring.php"
	],
	"config": {
		"GadgetsRepo": {
			"value": "definition",
			"description": "When set to `definition`, gadgets are managed via MediaWiki:Gadgets-definition. When set to `json`, they're managed via JSON subpages of MediaWiki:Gadgets/. It can also be set to `json+definition` to allow both, enabling migration from one to the other."
		},
		"GadgetsDefinitionsUseCodeEditor": {
			"value": true,
			"description": "Use CodeEditor for editing JSON gadget definition pages."
		},
		"GadgetsDefinitionsUseCodeMirror": {
			"value": false,
			"description": "Use CodeMirror for editing JSON gadget definition pages."
		}
	},
	"manifest_version": 2
}
