mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
Use namespaced Title
Bug: T321681 Change-Id: I66fd9b70a5de06ac3c81bdf6a2a5bca64ed094c2
This commit is contained in:
parent
438cb640ed
commit
cd7e9d31a7
|
@ -6,10 +6,10 @@ use BagOStuff;
|
|||
use InvalidArgumentException;
|
||||
use MediaWiki\Extension\AbuseFilter\Consequences\ConsequenceNotPrecheckedException;
|
||||
use MediaWiki\Extension\AbuseFilter\Consequences\Parameters;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserEditTracker;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Title;
|
||||
use Wikimedia\IPUtils;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@ use MediaWiki\Extension\AbuseFilter\Consequences\ConsequencesRegistry;
|
|||
use MediaWiki\Extension\AbuseFilter\Filter\ExistingFilter;
|
||||
use MediaWiki\Extension\AbuseFilter\Special\SpecialAbuseFilter;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use Title;
|
||||
use MediaWiki\Title\Title;
|
||||
|
||||
/**
|
||||
* Helper service for EmergencyWatcher to notify filter maintainers of throttled filters
|
||||
|
|
|
@ -5,8 +5,8 @@ namespace MediaWiki\Extension\AbuseFilter;
|
|||
use BagOStuff;
|
||||
use IBufferingStatsdDataFactory;
|
||||
use MediaWiki\Config\ServiceOptions;
|
||||
use MediaWiki\Title\Title;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Title;
|
||||
use Wikimedia\WRStats\LocalEntityKey;
|
||||
use Wikimedia\WRStats\WRStatsFactory;
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\LazyVariableComputer;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
|
||||
use MediaWiki\Extension\AbuseFilter\Watcher\Watcher;
|
||||
use MediaWiki\Title\Title;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Status;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,9 +15,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
|
||||
use MediaWiki\Extension\AbuseFilter\Watcher\EmergencyWatcher;
|
||||
use MediaWiki\Extension\AbuseFilter\Watcher\UpdateHitCountWatcher;
|
||||
use MediaWiki\Title\Title;
|
||||
use NullStatsdDataFactory;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
class FilterRunnerFactory {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
||||
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use Title;
|
||||
use MediaWiki\Title\Title;
|
||||
use User;
|
||||
|
||||
interface AbuseFilterAlterVariablesHook {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
||||
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use Title;
|
||||
use MediaWiki\Title\Title;
|
||||
|
||||
interface AbuseFilterFilterActionHook {
|
||||
/**
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
||||
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Title\Title;
|
||||
use RecentChange;
|
||||
use Title;
|
||||
|
||||
interface AbuseFilterGenerateTitleVarsHook {
|
||||
/**
|
||||
|
|
|
@ -6,8 +6,8 @@ use Content;
|
|||
use MediaWiki\Extension\AbuseFilter\VariableGenerator\RCVariableGenerator;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\HookContainer\HookContainer;
|
||||
use MediaWiki\Title\Title;
|
||||
use RecentChange;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
||||
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use Title;
|
||||
use MediaWiki\Title\Title;
|
||||
use User;
|
||||
|
||||
interface AbuseFilterShouldFilterActionHook {
|
||||
|
|
|
@ -9,9 +9,9 @@ use MediaWiki\Extension\AbuseFilter\BlockedDomainStorage;
|
|||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Page\PageIdentity;
|
||||
use MediaWiki\Permissions\Hook\GetUserPermissionsErrorsHook;
|
||||
use MediaWiki\Title\Title;
|
||||
use MessageSpecifier;
|
||||
use StatusValue;
|
||||
use Title;
|
||||
use TitleValue;
|
||||
use User;
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ use MediaWiki\Page\Hook\ArticleDeleteHook;
|
|||
use MediaWiki\Permissions\PermissionManager;
|
||||
use MediaWiki\Revision\SlotRecord;
|
||||
use MediaWiki\Storage\Hook\ParserOutputStashForEditHook;
|
||||
use MediaWiki\Title\Title;
|
||||
use Status;
|
||||
use Title;
|
||||
use UploadBase;
|
||||
use User;
|
||||
use WikiPage;
|
||||
|
|
|
@ -7,8 +7,8 @@ use MediaWiki\Extension\AbuseFilter\AbuseFilterPermissionManager;
|
|||
use MediaWiki\Extension\AbuseFilter\Special\SpecialAbuseLog;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Linker\LinkTarget;
|
||||
use MediaWiki\Title\Title;
|
||||
use SpecialPage;
|
||||
use Title;
|
||||
use TitleValue;
|
||||
use Wikimedia\IPUtils;
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@ namespace MediaWiki\Extension\AbuseFilter\Pager;
|
|||
|
||||
use MediaWiki\Extension\AbuseFilter\AbuseFilterChangesList;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Title\Title;
|
||||
use RecentChange;
|
||||
use ReverseChronologicalPager;
|
||||
use stdClass;
|
||||
use Title;
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
||||
class AbuseFilterExaminePager extends ReverseChronologicalPager {
|
||||
|
|
|
@ -13,9 +13,9 @@ use MediaWiki\Extension\AbuseFilter\Special\SpecialAbuseFilter;
|
|||
use MediaWiki\Extension\AbuseFilter\SpecsFormatter;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserRigorOptions;
|
||||
use TablePager;
|
||||
use Title;
|
||||
use UnexpectedValueException;
|
||||
use Wikimedia\Rdbms\IResultWrapper;
|
||||
use Xml;
|
||||
|
|
|
@ -14,12 +14,12 @@ use MediaWiki\Linker\LinkRenderer;
|
|||
use MediaWiki\Linker\LinkTarget;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Permissions\PermissionManager;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\WikiMap\WikiMap;
|
||||
use ReverseChronologicalPager;
|
||||
use Sanitizer;
|
||||
use SpecialPage;
|
||||
use stdClass;
|
||||
use Title;
|
||||
use Wikimedia\Rdbms\IResultWrapper;
|
||||
use Xml;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewList;
|
|||
use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewRevert;
|
||||
use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewTestBatch;
|
||||
use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewTools;
|
||||
use Title;
|
||||
use MediaWiki\Title\Title;
|
||||
use Wikimedia\ObjectFactory\ObjectFactory;
|
||||
|
||||
class SpecialAbuseFilter extends AbuseFilterSpecialPage {
|
||||
|
|
|
@ -28,6 +28,7 @@ use MediaWiki\MediaWikiServices;
|
|||
use MediaWiki\Permissions\Authority;
|
||||
use MediaWiki\Permissions\PermissionManager;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use MediaWiki\User\UserIdentityLookup;
|
||||
use MediaWiki\WikiMap\WikiMap;
|
||||
|
@ -35,7 +36,6 @@ use OOUI\ButtonInputWidget;
|
|||
use SpecialPage;
|
||||
use Status;
|
||||
use stdClass;
|
||||
use Title;
|
||||
use Wikimedia\Rdbms\LBFactory;
|
||||
use Xml;
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@ use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\Page\WikiPageFactory;
|
||||
use MediaWiki\Title\Title;
|
||||
use MimeAnalyzer;
|
||||
use MWFileProps;
|
||||
use RecentChange;
|
||||
use RepoGroup;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,9 +11,9 @@ use MediaWiki\Page\WikiPageFactory;
|
|||
use MediaWiki\Revision\MutableRevisionRecord;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Revision\SlotRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MimeAnalyzer;
|
||||
use MWFileProps;
|
||||
use Title;
|
||||
use UploadBase;
|
||||
use User;
|
||||
use Wikimedia\Assert\PreconditionException;
|
||||
|
|
|
@ -5,10 +5,10 @@ namespace MediaWiki\Extension\AbuseFilter\VariableGenerator;
|
|||
use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Storage\PreparedUpdate;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use MWTimestamp;
|
||||
use RecentChange;
|
||||
use Title;
|
||||
use User;
|
||||
use WikiPage;
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner;
|
|||
use MediaWiki\Extension\AbuseFilter\TextExtractor;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Page\WikiPageFactory;
|
||||
use MediaWiki\Title\Title;
|
||||
use MimeAnalyzer;
|
||||
use RecentChange;
|
||||
use RepoGroup;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
class VariableGeneratorFactory {
|
||||
|
|
|
@ -16,6 +16,7 @@ use MediaWiki\Revision\RevisionRecord;
|
|||
use MediaWiki\Revision\RevisionStore;
|
||||
use MediaWiki\Revision\SlotRecord;
|
||||
use MediaWiki\Storage\PreparedUpdate;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserEditTracker;
|
||||
use MediaWiki\User\UserGroupManager;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
|
@ -25,7 +26,6 @@ use Psr\Log\LoggerInterface;
|
|||
use stdClass;
|
||||
use StringUtils;
|
||||
use TextContent;
|
||||
use Title;
|
||||
use UnexpectedValueException;
|
||||
use User;
|
||||
use WANObjectCache;
|
||||
|
|
|
@ -9,10 +9,10 @@ use MediaWiki\Extension\AbuseFilter\AbuseFilterPermissionManager;
|
|||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Permissions\Authority;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use OOUI;
|
||||
use RecentChange;
|
||||
use SpecialPage;
|
||||
use Title;
|
||||
use UnexpectedValueException;
|
||||
use Wikimedia\Rdbms\Platform\ISQLPlatform;
|
||||
use Xml;
|
||||
|
|
|
@ -20,9 +20,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\VariablesFormatter;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use OOUI;
|
||||
use RecentChange;
|
||||
use Title;
|
||||
use Wikimedia\Rdbms\LBFactory;
|
||||
use Xml;
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ use MediaWiki\Extension\AbuseFilter\Parser\RuleCheckerFactory;
|
|||
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGeneratorFactory;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use RecentChange;
|
||||
use Title;
|
||||
use Wikimedia\Rdbms\LBFactory;
|
||||
|
||||
class AbuseFilterViewTestBatch extends AbuseFilterView {
|
||||
|
|
|
@ -10,7 +10,7 @@ use MediaWiki\Extension\AbuseFilter\KeywordsManager;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesBlobStore;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Title;
|
||||
use MediaWiki\Title\Title;
|
||||
use UnexpectedValueException;
|
||||
use Wikimedia\Rdbms\IMaintainableDatabase;
|
||||
use Wikimedia\Rdbms\IResultWrapper;
|
||||
|
|
|
@ -7,8 +7,8 @@ use MediaWiki\Extension\AbuseFilter\EchoNotifier;
|
|||
use MediaWiki\Extension\AbuseFilter\Filter\ExistingFilter;
|
||||
use MediaWiki\Extension\AbuseFilter\FilterLookup;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use Title;
|
||||
|
||||
/**
|
||||
* @group Database
|
||||
|
|
|
@ -12,8 +12,8 @@ use MediaWiki\Extension\AbuseFilter\FilterLookup;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesBlobStore;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Title;
|
||||
use User;
|
||||
use Wikimedia\Rdbms\LBFactory;
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ use MediaWiki\Extension\AbuseFilter\Consequences\ConsequenceNotPrecheckedExcepti
|
|||
use MediaWiki\Extension\AbuseFilter\Consequences\Parameters;
|
||||
use MediaWiki\Extension\AbuseFilter\Filter\ExistingFilter;
|
||||
use MediaWiki\Linker\LinkTarget;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserEditTracker;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
|
@ -19,7 +20,6 @@ use MediaWiki\User\UserIdentityValue;
|
|||
use MediaWikiUnitTestCase;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Psr\Log\NullLogger;
|
||||
use Title;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,8 +8,8 @@ use MediaWiki\Extension\AbuseFilter\EditRevUpdater;
|
|||
use MediaWiki\Linker\LinkTarget;
|
||||
use MediaWiki\Revision\MutableRevisionRecord;
|
||||
use MediaWiki\Revision\RevisionLookup;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Title;
|
||||
use TitleValue;
|
||||
use Wikimedia\Rdbms\DBConnRef;
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
|
|
@ -6,11 +6,11 @@ use HashBagOStuff;
|
|||
use IBufferingStatsdDataFactory;
|
||||
use MediaWiki\Config\ServiceOptions;
|
||||
use MediaWiki\Extension\AbuseFilter\FilterProfiler;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\Log\NullLogger;
|
||||
use TestLogger;
|
||||
use Title;
|
||||
use Wikimedia\WRStats\BagOStuffStatsStore;
|
||||
use Wikimedia\WRStats\WRStatsFactory;
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
|||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
|
||||
use MediaWiki\Extension\AbuseFilter\Watcher\EmergencyWatcher;
|
||||
use MediaWiki\Extension\AbuseFilter\Watcher\UpdateHitCountWatcher;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Psr\Log\NullLogger;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,9 +18,9 @@ use MediaWiki\Extension\AbuseFilter\Parser\RuleCheckerFactory;
|
|||
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGeneratorFactory;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Psr\Log\NullLogger;
|
||||
use Title;
|
||||
use User;
|
||||
use WebRequest;
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ use IContextSource;
|
|||
use MediaWiki\Extension\AbuseFilter\AbuseFilterPermissionManager;
|
||||
use MediaWiki\Extension\AbuseFilter\Hooks\Handlers\ToolLinksHandler;
|
||||
use MediaWiki\Linker\LinkRenderer;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Message;
|
||||
use SpecialPage;
|
||||
use Title;
|
||||
use User;
|
||||
use WebRequest;
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@ use MediaWiki\Extension\AbuseFilter\TextExtractor;
|
|||
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGeneratorFactory;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Page\WikiPageFactory;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiUnitTestCase;
|
||||
use MimeAnalyzer;
|
||||
use RecentChange;
|
||||
use RepoGroup;
|
||||
use Title;
|
||||
use User;
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,9 +8,9 @@ use MediaWiki\Extension\AbuseFilter\Parser\AFPData;
|
|||
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGenerator;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\LazyLoadedVariable;
|
||||
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use MediaWikiUnitTestCase;
|
||||
use Title;
|
||||
use User;
|
||||
use WikiPage;
|
||||
|
||||
|
|
|
@ -17,13 +17,13 @@ use MediaWiki\Permissions\RestrictionStore;
|
|||
use MediaWiki\Revision\RevisionLookup;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Revision\RevisionStore;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserEditTracker;
|
||||
use MediaWiki\User\UserGroupManager;
|
||||
use MediaWiki\User\UserIdentityValue;
|
||||
use MediaWikiUnitTestCase;
|
||||
use ParserFactory;
|
||||
use Psr\Log\NullLogger;
|
||||
use Title;
|
||||
use UnexpectedValueException;
|
||||
use User;
|
||||
use WANObjectCache;
|
||||
|
|
Loading…
Reference in a new issue