mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 14:46:48 +00:00
Use namespaced classes
This requires 1.42 for some new names Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I9a7df2df9407ef10d855bc19db247983682a5fc8
This commit is contained in:
parent
645f4b3c6a
commit
fc369e9457
|
@ -10,7 +10,7 @@
|
|||
"type": "antispam",
|
||||
"license-name": "GPL-2.0-or-later",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.41"
|
||||
"MediaWiki": ">= 1.42"
|
||||
},
|
||||
"GroupPermissions": {
|
||||
"user": {
|
||||
|
|
|
@ -6,9 +6,9 @@ use Exception;
|
|||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Revision\SlotRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
use ObjectCache;
|
||||
use TextContent;
|
||||
use User;
|
||||
|
||||
/**
|
||||
* Base class for different kinds of blacklists
|
||||
|
|
|
@ -4,7 +4,7 @@ namespace MediaWiki\Extension\SpamBlacklist;
|
|||
|
||||
use LogicException;
|
||||
use MediaWiki\Title\Title;
|
||||
use User;
|
||||
use MediaWiki\User\User;
|
||||
use Wikimedia\AtEase\AtEase;
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,6 @@ namespace MediaWiki\Extension\SpamBlacklist;
|
|||
|
||||
use ApiMessage;
|
||||
use Content;
|
||||
use Html;
|
||||
use IContextSource;
|
||||
use LogicException;
|
||||
use MediaWiki\Content\IContentHandlerFactory;
|
||||
|
@ -14,21 +13,22 @@ use MediaWiki\ExternalLinks\LinkFilter;
|
|||
use MediaWiki\Hook\EditFilterHook;
|
||||
use MediaWiki\Hook\EditFilterMergedContentHook;
|
||||
use MediaWiki\Hook\UploadVerifyUploadHook;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Permissions\PermissionManager;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Status\Status;
|
||||
use MediaWiki\Storage\EditResult;
|
||||
use MediaWiki\Storage\Hook\PageSaveCompleteHook;
|
||||
use MediaWiki\Storage\Hook\ParserOutputStashForEditHook;
|
||||
use MediaWiki\Storage\PageEditStash;
|
||||
use MediaWiki\User\Hook\UserCanSendEmailHook;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use Message;
|
||||
use MessageSpecifier;
|
||||
use ParserOptions;
|
||||
use ParserOutput;
|
||||
use Status;
|
||||
use UploadBase;
|
||||
use User;
|
||||
use Wikimedia\Assert\PreconditionException;
|
||||
use WikiPage;
|
||||
|
||||
|
|
|
@ -9,9 +9,9 @@ use MediaWiki\CheckUser\Hooks as CUHooks;
|
|||
use MediaWiki\ExternalLinks\ExternalLinksLookup;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
use ObjectCache;
|
||||
use RequestContext;
|
||||
use User;
|
||||
use Wikimedia\AtEase\AtEase;
|
||||
use Wikimedia\Rdbms\Database;
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ use MediaWiki\Revision\RevisionLookup;
|
|||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Revision\SlotRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleFormatter;
|
||||
use MediaWiki\User\User;
|
||||
|
||||
$IP = getenv( 'MW_INSTALL_PATH' );
|
||||
if ( $IP === false ) {
|
||||
|
|
|
@ -4,7 +4,9 @@ use MediaWiki\EditPage\EditPage;
|
|||
use MediaWiki\Extension\SpamBlacklist\BaseBlacklist;
|
||||
use MediaWiki\Extension\SpamBlacklist\SpamBlacklist;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
|
||||
/**
|
||||
* @group SpamBlacklist
|
||||
|
|
Loading…
Reference in a new issue