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 @@