From e6c9eab90fa501b75ec6f1c21410a0de40cff0ac Mon Sep 17 00:00:00 2001 From: Fomafix Date: Wed, 22 May 2024 20:09:02 +0000 Subject: [PATCH] Use namespaced PHP classes These namespaces are available since MediaWiki 1.42 which is already required in extension.json. Change-Id: If72d77a5440516beeac637b4baf06e9b4c672e8a --- includes/CategoryTree.php | 6 +++--- includes/CategoryTreePage.php | 2 +- includes/Hooks.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/CategoryTree.php b/includes/CategoryTree.php index 48d6f3fe..a73405c0 100644 --- a/includes/CategoryTree.php +++ b/includes/CategoryTree.php @@ -25,17 +25,17 @@ namespace MediaWiki\Extension\CategoryTree; use ExtensionRegistry; -use IContextSource; use MediaWiki\Category\Category; use MediaWiki\Config\Config; +use MediaWiki\Context\IContextSource; +use MediaWiki\Context\RequestContext; use MediaWiki\Html\Html; use MediaWiki\Linker\LinkRenderer; use MediaWiki\MediaWikiServices; use MediaWiki\Output\OutputPage; +use MediaWiki\Parser\Parser; use MediaWiki\SpecialPage\SpecialPage; use MediaWiki\Title\Title; -use Parser; -use RequestContext; use Wikimedia\Rdbms\IConnectionProvider; /** diff --git a/includes/CategoryTreePage.php b/includes/CategoryTreePage.php index ce4e903d..34f5abc1 100644 --- a/includes/CategoryTreePage.php +++ b/includes/CategoryTreePage.php @@ -24,8 +24,8 @@ namespace MediaWiki\Extension\CategoryTree; -use HTMLForm; use MediaWiki\Html\Html; +use MediaWiki\HTMLForm\HTMLForm; use MediaWiki\SpecialPage\SpecialPage; use MediaWiki\Title\Title; use SearchEngineFactory; diff --git a/includes/Hooks.php b/includes/Hooks.php index e4f38df7..a984ca08 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -25,6 +25,7 @@ namespace MediaWiki\Extension\CategoryTree; use MediaWiki\Config\Config; +use MediaWiki\Context\RequestContext; use MediaWiki\Hook\CategoryViewer__doCategoryQueryHook; use MediaWiki\Hook\CategoryViewer__generateLinkHook; use MediaWiki\Hook\OutputPageMakeCategoryLinksHook; @@ -36,13 +37,12 @@ use MediaWiki\Html\Html; use MediaWiki\Linker\LinkRenderer; use MediaWiki\Linker\LinkTarget; use MediaWiki\Output\OutputPage; +use MediaWiki\Parser\Parser; use MediaWiki\Parser\Sanitizer; use MediaWiki\ResourceLoader as RL; use MediaWiki\SpecialPage\SpecialPage; use MediaWiki\Title\Title; -use Parser; use PPFrame; -use RequestContext; use Skin; use Wikimedia\Rdbms\IConnectionProvider; use Wikimedia\Rdbms\IResultWrapper;