From 30fa5efcafc4c59c826cfed94d5c08bcf4327f95 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 20 Oct 2024 10:59:39 +0200 Subject: [PATCH] Use namespaced classes Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I3b0d2a2a25d4c4c9d11906961634eac1d47afa80 --- ServiceWiring.php | 2 ++ maintenance/UpdateForMultipleDevicesSupport.php | 2 +- maintenance/UpdateTOTPScratchTokensToArray.php | 2 +- maintenance/disableOATHAuthForUser.php | 1 + src/Api/Module/ApiOATHValidate.php | 4 ++-- src/Api/Module/ApiQueryOATH.php | 6 +++--- src/Key/TOTPKey.php | 2 +- src/Notifications/Manager.php | 2 +- src/OATHUserRepository.php | 2 +- src/Special/DisableOATHForUser.php | 2 +- src/Special/VerifyOATHForUser.php | 2 +- tests/phpunit/integration/OATHUserRepositoryTest.php | 2 +- 12 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ServiceWiring.php b/ServiceWiring.php index db92d876..b0c42b93 100644 --- a/ServiceWiring.php +++ b/ServiceWiring.php @@ -4,6 +4,8 @@ use MediaWiki\Extension\OATHAuth\OATHAuthModuleRegistry; use MediaWiki\Extension\OATHAuth\OATHUserRepository; use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; +use MediaWiki\Registration\ExtensionRegistry; +use Wikimedia\ObjectCache\HashBagOStuff; return [ 'OATHAuthModuleRegistry' => static function ( MediaWikiServices $services ): OATHAuthModuleRegistry { diff --git a/maintenance/UpdateForMultipleDevicesSupport.php b/maintenance/UpdateForMultipleDevicesSupport.php index 3af674f5..df45428e 100644 --- a/maintenance/UpdateForMultipleDevicesSupport.php +++ b/maintenance/UpdateForMultipleDevicesSupport.php @@ -20,9 +20,9 @@ namespace MediaWiki\Extension\OATHAuth\Maintenance; -use LoggedUpdateMaintenance; use MediaWiki\Extension\OATHAuth\OATHAuthServices; use MediaWiki\Json\FormatJson; +use MediaWiki\Maintenance\LoggedUpdateMaintenance; use MediaWiki\MediaWikiServices; if ( getenv( 'MW_INSTALL_PATH' ) ) { diff --git a/maintenance/UpdateTOTPScratchTokensToArray.php b/maintenance/UpdateTOTPScratchTokensToArray.php index 8dc1da96..f6b7797b 100644 --- a/maintenance/UpdateTOTPScratchTokensToArray.php +++ b/maintenance/UpdateTOTPScratchTokensToArray.php @@ -25,8 +25,8 @@ namespace MediaWiki\Extension\OATHAuth\Maintenance; -use LoggedUpdateMaintenance; use MediaWiki\Json\FormatJson; +use MediaWiki\Maintenance\LoggedUpdateMaintenance; use MediaWiki\MediaWikiServices; if ( getenv( 'MW_INSTALL_PATH' ) ) { diff --git a/maintenance/disableOATHAuthForUser.php b/maintenance/disableOATHAuthForUser.php index 3c36d4ee..551675fb 100644 --- a/maintenance/disableOATHAuthForUser.php +++ b/maintenance/disableOATHAuthForUser.php @@ -1,6 +1,7 @@