From 36d44c823f8b0efda92f7f7916e7795f5d19ce29 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 20 Oct 2024 11:15:08 +0200 Subject: [PATCH] Use namespaced classes Changes to the use statements done automatically via script Change-Id: Ica9e853f7e19f0f60960ac76d7ee71cba74d0346 --- includes/ExprError.php | 2 +- includes/Hooks.php | 6 +++--- includes/ParserFunctions.php | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/ExprError.php b/includes/ExprError.php index 1194dbb0..cbdc7944 100644 --- a/includes/ExprError.php +++ b/includes/ExprError.php @@ -19,7 +19,7 @@ namespace MediaWiki\Extension\ParserFunctions; use Exception; -use Message; +use MediaWiki\Message\Message; class ExprError extends Exception { /** @var Message */ diff --git a/includes/Hooks.php b/includes/Hooks.php index 07926819..99726e45 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -2,14 +2,14 @@ namespace MediaWiki\Extension\ParserFunctions; -use Config; -use LinkCache; +use MediaWiki\Cache\LinkCache; +use MediaWiki\Config\Config; use MediaWiki\HookContainer\HookContainer; use MediaWiki\Languages\LanguageConverterFactory; use MediaWiki\Languages\LanguageFactory; use MediaWiki\Languages\LanguageNameUtils; +use MediaWiki\Parser\Parser; use MediaWiki\SpecialPage\SpecialPageFactory; -use Parser; use RepoGroup; class Hooks implements diff --git a/includes/ParserFunctions.php b/includes/ParserFunctions.php index fd07384e..02ebddf8 100644 --- a/includes/ParserFunctions.php +++ b/includes/ParserFunctions.php @@ -2,23 +2,23 @@ namespace MediaWiki\Extension\ParserFunctions; -use Config; use DateTime; use DateTimeZone; use Exception; -use LinkCache; +use MediaWiki\Cache\LinkCache; +use MediaWiki\Config\Config; use MediaWiki\HookContainer\HookContainer; use MediaWiki\Languages\LanguageConverterFactory; use MediaWiki\Languages\LanguageFactory; use MediaWiki\Languages\LanguageNameUtils; +use MediaWiki\Parser\Parser; +use MediaWiki\Parser\PPFrame; +use MediaWiki\Parser\PPNode; +use MediaWiki\Parser\Sanitizer; use MediaWiki\SpecialPage\SpecialPageFactory; use MediaWiki\Title\Title; -use MWTimestamp; -use Parser; -use PPFrame; -use PPNode; +use MediaWiki\Utils\MWTimestamp; use RepoGroup; -use Sanitizer; use StringUtils; use Wikimedia\RequestTimeout\TimeoutException;