From 51c3fe42bd09616192990347552334ecc4afbb4b Mon Sep 17 00:00:00 2001 From: Reedy Date: Sun, 6 Feb 2022 13:55:54 +0000 Subject: [PATCH] Swap to AutoloadNamespaces Change-Id: I4eb121b4e81b4ec4833ce0bea81ae041abbdacc9 Follows-Up: I0be9b88accafce97f7e9b7524ec740fb576fa11c --- extension.json | 5 ++--- includes/Hooks.php | 6 ------ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/extension.json b/extension.json index ebcb3c5a..8fa7284b 100644 --- a/extension.json +++ b/extension.json @@ -389,9 +389,8 @@ "wikieditor-toolbar-help-content-indent-syntax", "wikieditor-toolbar-help-content-indent-result" ], - "AutoloadClasses": { - "MediaWiki\\Extension\\WikiEditor\\Hooks": "includes/Hooks.php", - "WikiEditorHooks": "includes/Hooks.php" + "AutoloadNamespaces": { + "MediaWiki\\Extension\\WikiEditor\\": "includes/" }, "manifest_version": 2 } diff --git a/includes/Hooks.php b/includes/Hooks.php index 77780671..a4ec2fc6 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -558,9 +558,3 @@ class Hooks implements return true; } } - -/** - * Retain the old class name for backwards compatibility. - * @deprecated since 1.38 - */ -class_alias( Hooks::class, 'WikiEditorHooks' );