mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I60968f9b735b27eaef20e5d42af322a8c2ecd257
This commit is contained in:
parent
f430cb0fc3
commit
1cfba87b23
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha;
|
||||
|
||||
use ApiBase;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
|
||||
/**
|
||||
* Api module to reload FancyCaptcha
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha;
|
||||
|
||||
use FileBackend;
|
||||
use FSFileBackend;
|
||||
use InvalidArgumentException;
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Auth\AuthManager;
|
||||
|
@ -17,6 +15,8 @@ use MediaWiki\Utils\MWTimestamp;
|
|||
use MediaWiki\WikiMap\WikiMap;
|
||||
use NullLockManager;
|
||||
use UnderflowException;
|
||||
use Wikimedia\FileBackend\FileBackend;
|
||||
use Wikimedia\FileBackend\FSFileBackend;
|
||||
|
||||
/**
|
||||
* FancyCaptcha for displaying captchas precomputed by captcha.py
|
||||
|
|
|
@ -16,7 +16,7 @@ use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
|
|||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
use MediaWiki\Extension\ConfirmEdit\Store\CaptchaStore;
|
||||
use MediaWiki\Html\Html;
|
||||
use Xml;
|
||||
use MediaWiki\Xml\Xml;
|
||||
|
||||
class QuestyCaptcha extends SimpleCaptcha {
|
||||
/**
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha;
|
||||
|
||||
use ApiBase;
|
||||
use FormatJson;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
|
||||
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
||||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Json\FormatJson;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Message\Message;
|
||||
|
|
|
@ -2,16 +2,15 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\SimpleCaptcha;
|
||||
|
||||
use ApiBase;
|
||||
use ApiEditPage;
|
||||
use Content;
|
||||
use ExtensionRegistry;
|
||||
use IDBAccessObject;
|
||||
use MailAddress;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiEditPage;
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Cache\CacheKeyHelper;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\ConfigException;
|
||||
use MediaWiki\Content\Content;
|
||||
use MediaWiki\Content\TextContent;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\EditPage\EditPage;
|
||||
|
@ -25,6 +24,8 @@ use MediaWiki\HTMLForm\HTMLForm;
|
|||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Request\ContentSecurityPolicy;
|
||||
use MediaWiki\Request\WebRequest;
|
||||
use MediaWiki\Revision\RevisionAccessException;
|
||||
|
@ -35,10 +36,9 @@ use MediaWiki\User\User;
|
|||
use OOUI\FieldLayout;
|
||||
use OOUI\HiddenInputWidget;
|
||||
use OOUI\NumberInputWidget;
|
||||
use ParserOptions;
|
||||
use TextContent;
|
||||
use UnexpectedValueException;
|
||||
use Wikimedia\IPUtils;
|
||||
use Wikimedia\Rdbms\IDBAccessObject;
|
||||
use WikiPage;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\Turnstile;
|
||||
|
||||
use ApiBase;
|
||||
use FormatJson;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
|
||||
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
||||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Json\FormatJson;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Message\Message;
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\hCaptcha;
|
||||
|
||||
use ApiBase;
|
||||
use FormatJson;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Auth\AuthenticationRequest;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
|
@ -11,6 +10,7 @@ use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
|
|||
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
||||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Json\FormatJson;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Message\Message;
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\Auth;
|
||||
|
||||
use BagOStuff;
|
||||
use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers;
|
||||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\User\UserNameUtils;
|
||||
use Wikimedia\ObjectCache\BagOStuff;
|
||||
|
||||
/**
|
||||
* Helper to count login attempts per IP and per username.
|
||||
|
|
|
@ -4,11 +4,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit;
|
||||
|
||||
use ApiBase;
|
||||
use Content;
|
||||
use ExtensionRegistry;
|
||||
use MailAddress;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\Hook\APIGetAllowedParamsHook;
|
||||
use MediaWiki\Content\Content;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\EditPage\EditPage;
|
||||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
|
@ -23,6 +22,7 @@ use MediaWiki\HTMLForm\HTMLForm;
|
|||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Permissions\Hook\TitleReadWhitelistHook;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\ResourceLoader\Hook\ResourceLoaderRegisterModulesHook;
|
||||
use MediaWiki\ResourceLoader\ResourceLoader;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
|
@ -34,9 +34,9 @@ use MediaWiki\Storage\Hook\PageSaveCompleteHook;
|
|||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use WANObjectCache;
|
||||
use Wikimedia\IPUtils;
|
||||
use Wikimedia\Message\MessageSpecifier;
|
||||
use Wikimedia\ObjectCache\WANObjectCache;
|
||||
use WikiPage;
|
||||
|
||||
class Hooks implements
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\ConfirmEdit\Store;
|
||||
|
||||
use BagOStuff;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Wikimedia\ObjectCache\BagOStuff;
|
||||
|
||||
class CaptchaCacheStore extends CaptchaStore {
|
||||
/** @var BagOStuff */
|
||||
|
|
|
@ -30,6 +30,7 @@ require_once "$IP/maintenance/Maintenance.php";
|
|||
|
||||
use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha;
|
||||
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
|
||||
/**
|
||||
* Maintenance script that counts the number of captchas remaining.
|
||||
|
|
|
@ -30,6 +30,7 @@ require_once "$IP/maintenance/Maintenance.php";
|
|||
|
||||
use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha;
|
||||
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\Status\Status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,6 +31,7 @@ require_once "$IP/maintenance/Maintenance.php";
|
|||
|
||||
use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha;
|
||||
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\Shell\Shell;
|
||||
use MediaWiki\Status\Status;
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ use MediaWiki\Config\HashConfig;
|
|||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers;
|
||||
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Request\WebRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
|
|
Loading…
Reference in a new issue