mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-13 17:53:12 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: Ic68adf551cf4dadc2091715d8640309ca432eb77
This commit is contained in:
parent
2d63628081
commit
a671633b33
|
@ -8,9 +8,6 @@
|
|||
|
||||
namespace LoginNotify;
|
||||
|
||||
use BagOStuff;
|
||||
use ExtensionRegistry;
|
||||
use IBufferingStatsdDataFactory;
|
||||
use JobQueueGroup;
|
||||
use JobSpecification;
|
||||
use LogicException;
|
||||
|
@ -19,6 +16,7 @@ use MediaWiki\Config\ServiceOptions;
|
|||
use MediaWiki\Extension\CentralAuth\User\CentralAuthUser;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Request\WebRequest;
|
||||
use MediaWiki\User\CentralId\CentralIdLookup;
|
||||
use MediaWiki\User\User;
|
||||
|
@ -29,12 +27,14 @@ use Psr\Log\LoggerInterface;
|
|||
use UnexpectedValueException;
|
||||
use Wikimedia\Assert\Assert;
|
||||
use Wikimedia\IPUtils;
|
||||
use Wikimedia\ObjectCache\BagOStuff;
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
use Wikimedia\Rdbms\IExpression;
|
||||
use Wikimedia\Rdbms\IMaintainableDatabase;
|
||||
use Wikimedia\Rdbms\IReadableDatabase;
|
||||
use Wikimedia\Rdbms\LBFactory;
|
||||
use Wikimedia\Rdbms\LikeValue;
|
||||
use Wikimedia\Stats\IBufferingStatsdDataFactory;
|
||||
|
||||
/**
|
||||
* Handle sending notifications on login from unknown source.
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
namespace LoginNotify\Maintenance;
|
||||
|
||||
use LoginNotify\Hooks\HookRunner;
|
||||
use Maintenance;
|
||||
use MediaWiki\Auth\AuthenticationResponse;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\User\UserFactory;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace LoginNotify\Maintenance;
|
||||
|
||||
use BatchRowIterator;
|
||||
use LoggedUpdateMaintenance;
|
||||
use MediaWiki\Maintenance\LoggedUpdateMaintenance;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\WikiMap\WikiMap;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace LoginNotify\Maintenance;
|
||||
|
||||
use LoginNotify\LoginNotify;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
|
||||
$IP = getenv( 'MW_INSTALL_PATH' );
|
||||
if ( $IP === false ) {
|
||||
|
@ -11,7 +12,7 @@ if ( $IP === false ) {
|
|||
|
||||
require_once "$IP/maintenance/Maintenance.php";
|
||||
|
||||
class PurgeSeen extends \Maintenance {
|
||||
class PurgeSeen extends Maintenance {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->addDescription( 'Purge expired user IP address information stored by LoginNotify' );
|
||||
|
|
|
@ -10,6 +10,7 @@ use MediaWiki\Request\FauxRequest;
|
|||
use MediaWiki\User\CentralId\LocalIdLookup;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use Wikimedia\ObjectCache\HashBagOStuff;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
// phpcs:disable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
|
||||
|
|
Loading…
Reference in a new issue