From 15f2edbaeea14400571a4d1775f2890372608fe0 Mon Sep 17 00:00:00 2001 From: alex4401 Date: Mon, 4 Dec 2023 20:44:37 +0100 Subject: [PATCH] Use namespace autoloading instead of manually tracking classes This extension's classes have already been namespaced. Perhaps wrongly, but I don't see any showstoppers against using PSR-4 autoloading here. Change-Id: I484feeb51beab0c2e06c9f958a1c15c40853b967 --- extension.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.json b/extension.json index 0f5a111..1cb74d5 100644 --- a/extension.json +++ b/extension.json @@ -17,8 +17,8 @@ "ConfigRegistry": { "Description2": "GlobalVarConfig::newInstance" }, - "AutoloadClasses": { - "MediaWiki\\Extension\\Description2\\Description2": "includes/Description2.php" + "AutoloadNamespaces": { + "MediaWiki\\Extension\\Description2\\": "includes/" }, "ExtensionMessagesFiles": { "Description2Magic": "Description2.i18n.magic.php"