mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-23 15:56:59 +00:00
Merge "Use namespaced classes"
This commit is contained in:
commit
afb31abd98
|
@ -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 {
|
||||
|
|
|
@ -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' ) ) {
|
||||
|
|
|
@ -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' ) ) {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\Extension\OATHAuth\OATHAuthServices;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Session\SessionManager;
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth\Api\Module;
|
||||
|
||||
use ApiBase;
|
||||
use ApiResult;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiResult;
|
||||
use MediaWiki\Extension\OATHAuth\IModule;
|
||||
use MediaWiki\Json\FormatJson;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth\Api\Module;
|
||||
|
||||
use ApiQuery;
|
||||
use ApiQueryBase;
|
||||
use ApiResult;
|
||||
use ManualLogEntry;
|
||||
use MediaWiki\Api\ApiQuery;
|
||||
use MediaWiki\Api\ApiQueryBase;
|
||||
use MediaWiki\Api\ApiResult;
|
||||
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace MediaWiki\Extension\OATHAuth\Key;
|
|||
|
||||
use Base32\Base32;
|
||||
use DomainException;
|
||||
use EmptyBagOStuff;
|
||||
use Exception;
|
||||
use jakobo\HOTP\HOTP;
|
||||
use MediaWiki\Extension\OATHAuth\IAuthKey;
|
||||
|
@ -31,6 +30,7 @@ use MediaWiki\Logger\LoggerFactory;
|
|||
use MediaWiki\MediaWikiServices;
|
||||
use MWException;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Wikimedia\ObjectCache\EmptyBagOStuff;
|
||||
|
||||
/**
|
||||
* Class representing a two-factor key
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth\Notifications;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Extension\OATHAuth\OATHUser;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth;
|
||||
|
||||
use BagOStuff;
|
||||
use InvalidArgumentException;
|
||||
use MediaWiki\Config\ConfigException;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
|
@ -30,6 +29,7 @@ use MWException;
|
|||
use Psr\Log\LoggerAwareInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use RuntimeException;
|
||||
use Wikimedia\ObjectCache\BagOStuff;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
|
||||
class OATHUserRepository implements LoggerAwareInterface {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth\Special;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use ManualLogEntry;
|
||||
use MediaWiki\CheckUser\Hooks as CheckUserHooks;
|
||||
use MediaWiki\Config\ConfigException;
|
||||
|
@ -10,6 +9,7 @@ use MediaWiki\Extension\OATHAuth\OATHUserRepository;
|
|||
use MediaWiki\HTMLForm\HTMLForm;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\SpecialPage\FormSpecialPage;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\User\UserFactory;
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth\Special;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use ManualLogEntry;
|
||||
use MediaWiki\CheckUser\Hooks as CheckUserHooks;
|
||||
use MediaWiki\Config\ConfigException;
|
||||
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
|
||||
use MediaWiki\HTMLForm\HTMLForm;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\SpecialPage\FormSpecialPage;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\User\UserFactory;
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\OATHAuth\Tests\Integration;
|
||||
|
||||
use EmptyBagOStuff;
|
||||
use MediaWiki\Extension\OATHAuth\Key\TOTPKey;
|
||||
use MediaWiki\Extension\OATHAuth\OATHAuthServices;
|
||||
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
|
||||
|
@ -28,6 +27,7 @@ use MediaWiki\User\CentralId\CentralIdLookup;
|
|||
use MediaWiki\User\CentralId\CentralIdLookupFactory;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Wikimedia\ObjectCache\EmptyBagOStuff;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
|
|
Loading…
Reference in a new issue