mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I492ddae3c3e9f81d551ea8b348b7148893f4f590
This commit is contained in:
parent
6a3e25b382
commit
3dc5e88842
|
@ -5,10 +5,10 @@ namespace MediaWiki\Extension\DiscussionTools\Actions;
|
|||
use Article;
|
||||
use ErrorPageError;
|
||||
use FormAction;
|
||||
use HTMLForm;
|
||||
use IContextSource;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\SubscriptionStore;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\HTMLForm\HTMLForm;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
|
|
|
@ -5,11 +5,11 @@ namespace MediaWiki\Extension\DiscussionTools\Actions;
|
|||
use Article;
|
||||
use ErrorPageError;
|
||||
use FormAction;
|
||||
use HTMLForm;
|
||||
use IContextSource;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\SubscriptionItem;
|
||||
use MediaWiki\Extension\DiscussionTools\SubscriptionStore;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\HTMLForm\HTMLForm;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
|
|
|
@ -5,9 +5,9 @@ namespace MediaWiki\Extension\DiscussionTools;
|
|||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use DerivativeContext;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Context\DerivativeContext;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentCommentItem;
|
||||
use MediaWiki\Extension\VisualEditor\ApiParsoidTrait;
|
||||
|
|
|
@ -13,8 +13,8 @@ use MediaWiki\Extension\Thanks\Storage\LogStore;
|
|||
use MediaWiki\Extension\VisualEditor\ApiParsoidTrait;
|
||||
use MediaWiki\Permissions\PermissionManager;
|
||||
use MediaWiki\Revision\RevisionLookup;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use Title;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
use Wikimedia\Parsoid\Core\ResourceLimitExceededException;
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ namespace MediaWiki\Extension\DiscussionTools;
|
|||
|
||||
use ApiMain;
|
||||
use ApiResult;
|
||||
use DerivativeContext;
|
||||
use IContextSource;
|
||||
use MediaWiki\Context\DerivativeContext;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\VisualEditor\ParsoidClient;
|
||||
use MediaWiki\Extension\VisualEditor\VisualEditorParsoidClientFactory;
|
||||
use MediaWiki\Request\DerivativeRequest;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use IContextSource;
|
||||
use Language;
|
||||
use MediaWiki\Config\ConfigException;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookRunner;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentCommentItem;
|
||||
|
@ -13,13 +13,13 @@ use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentThreadItem;
|
|||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ThreadItem;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Parser\Sanitizer;
|
||||
use MediaWiki\Request\WebRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use MediaWiki\Utils\MWTimestamp;
|
||||
use MWExceptionHandler;
|
||||
use ParserOutput;
|
||||
use Throwable;
|
||||
use Wikimedia\Parsoid\DOM\Document;
|
||||
use Wikimedia\Parsoid\DOM\Element;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use IContextSource;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\OverflowMenuItem;
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use IContextSource;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\OverflowMenuItem;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\User\UserNameUtils;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use IContextSource;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\HookContainer\HookContainer;
|
||||
use MessageLocalizer;
|
||||
|
||||
|
|
|
@ -10,9 +10,10 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use IContextSource;
|
||||
use IDBAccessObject;
|
||||
use LqtDispatch;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentParser;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ContentThreadItemSet;
|
||||
|
@ -26,7 +27,6 @@ use MediaWiki\Title\Title;
|
|||
use MediaWiki\Title\TitleValue;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use ParserOptions;
|
||||
use RequestContext;
|
||||
use RuntimeException;
|
||||
use Wikimedia\Assert\Assert;
|
||||
use Wikimedia\Parsoid\Core\ResourceLimitExceededException;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use DatabaseUpdater;
|
||||
use MediaWiki\Installer\DatabaseUpdater;
|
||||
use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook;
|
||||
|
||||
class InstallerHooks implements
|
||||
|
|
|
@ -11,29 +11,29 @@ namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
|||
|
||||
use Article;
|
||||
use ExtensionRegistry;
|
||||
use IContextSource;
|
||||
use MediaWiki\Actions\Hook\GetActionNameHook;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentFormatter;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\SubscriptionStore;
|
||||
use MediaWiki\Extension\VisualEditor\Hooks as VisualEditorHooks;
|
||||
use MediaWiki\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Hook\OutputPageBeforeHTMLHook;
|
||||
use MediaWiki\Hook\OutputPageParserOutputHook;
|
||||
use MediaWiki\Hook\SidebarBeforeOutputHook;
|
||||
use MediaWiki\Hook\SkinTemplateNavigation__UniversalHook;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Output\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Output\Hook\OutputPageBeforeHTMLHook;
|
||||
use MediaWiki\Output\Hook\OutputPageParserOutputHook;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Page\Hook\BeforeDisplayNoArticleTextHook;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\Options\UserOptionsLookup;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use MediaWiki\User\UserNameUtils;
|
||||
use OOUI\ButtonWidget;
|
||||
use ParserOutput;
|
||||
use RequestContext;
|
||||
use Skin;
|
||||
use SkinTemplate;
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ use MediaWiki\Extension\DiscussionTools\CommentFormatter;
|
|||
use MediaWiki\Hook\GetDoubleUnderscoreIDsHook;
|
||||
use MediaWiki\Hook\ParserAfterTidyHook;
|
||||
use MediaWiki\Hook\ParserOutputPostCacheTransformHook;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Parser\ParserOutputFlags;
|
||||
use MediaWiki\Parser\Parsoid\PageBundleParserOutputConverter;
|
||||
use MediaWiki\Parser\Parsoid\ParsoidParser;
|
||||
use MediaWiki\Title\Title;
|
||||
use Parser;
|
||||
use ParserOutput;
|
||||
|
||||
class ParserHooks implements
|
||||
ParserOutputPostCacheTransformHook,
|
||||
|
|
|
@ -11,9 +11,9 @@ namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
|||
|
||||
use MediaWiki\ChangeTags\Hook\ChangeTagsListActiveHook;
|
||||
use MediaWiki\ChangeTags\Hook\ListDefinedTagsHook;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Hook\RecentChange_saveHook;
|
||||
use RecentChange;
|
||||
use RequestContext;
|
||||
|
||||
class TagHooks implements
|
||||
ChangeTagsListActiveHook,
|
||||
|
|
|
@ -13,10 +13,10 @@ use Language;
|
|||
use MediaWiki\Extension\Notifications\Formatters\EchoEventPresentationModel;
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoPresentationModelSection;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use Message;
|
||||
use RawMessage;
|
||||
use User;
|
||||
use MediaWiki\User\User;
|
||||
|
||||
class CommentThanksPresentationModel extends EchoEventPresentationModel {
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
|||
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoEditUserTalkPresentationModel;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use Message;
|
||||
use MediaWiki\Message\Message;
|
||||
use Wikimedia\Timestamp\TimestampException;
|
||||
|
||||
class EnhancedEchoEditUserTalkPresentationModel extends EchoEditUserTalkPresentationModel {
|
||||
|
|
|
@ -14,6 +14,7 @@ use DateTimeImmutable;
|
|||
use ExtensionRegistry;
|
||||
use IDBAccessObject;
|
||||
use Iterator;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Deferred\DeferredUpdates;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ContentThreadItemSet;
|
||||
|
@ -26,13 +27,13 @@ use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentHeadingItem;
|
|||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentThreadItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\HeadingItem;
|
||||
use MediaWiki\Extension\EventLogging\EventLogging;
|
||||
use MediaWiki\Extension\EventLogging\Libs\UserBucketProvider\UserBucketProvider;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Page\PageIdentity;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use RequestContext;
|
||||
use Wikimedia\Assert\Assert;
|
||||
use Wikimedia\Parsoid\Core\ResourceLimitExceededException;
|
||||
use Wikimedia\Parsoid\Utils\DOMCompat;
|
||||
|
@ -453,7 +454,7 @@ class EventDispatcher {
|
|||
// Retention-safe values:
|
||||
'user_is_anonymous' => !$identity->isRegistered(),
|
||||
'user_is_temp' => $userIdentityUtils->isTemp( $identity ),
|
||||
'user_edit_count_bucket' => \UserBucketProvider::getUserEditCountBucket( $identity ) ?: 'N/A',
|
||||
'user_edit_count_bucket' => UserBucketProvider::getUserEditCountBucket( $identity ) ?: 'N/A',
|
||||
],
|
||||
'database' => $wgDBname,
|
||||
// This is unreliable, but sufficient for our purposes; we
|
||||
|
|
|
@ -15,8 +15,8 @@ use MediaWiki\Extension\Notifications\Formatters\EchoEventPresentationModel;
|
|||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\User\User;
|
||||
use Message;
|
||||
use Wikimedia\Timestamp\TimestampException;
|
||||
|
||||
class SubscribedNewCommentPresentationModel extends EchoEventPresentationModel {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use HTMLForm;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\HTMLForm\HTMLForm;
|
||||
use MediaWiki\SpecialPage\FormSpecialPage;
|
||||
|
||||
class SpecialFindComment extends FormSpecialPage {
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use IContextSource;
|
||||
use InvalidArgumentException;
|
||||
use MediaWiki\Cache\LinkBatchFactory;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\DatabaseThreadItem;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Linker\Linker;
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use FormatJson;
|
||||
use GenderCache;
|
||||
use MediaWiki\Cache\GenderCache;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\User;
|
||||
use ParserOutput;
|
||||
use Skin;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
|
|
|
@ -3,18 +3,18 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use FormatJson;
|
||||
use GenderCache;
|
||||
use HashConfig;
|
||||
use MediaWiki\Cache\GenderCache;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Config\MultiConfig;
|
||||
use MediaWiki\Config\ServiceOptions;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentParser;
|
||||
use MediaWiki\Interwiki\NullInterwikiLookup;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\Languages\LanguageFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\User\StaticUserOptionsLookup;
|
||||
use MediaWikiTitleCodec;
|
||||
use MultiConfig;
|
||||
use NamespaceInfo;
|
||||
use MediaWiki\Title\MediaWikiTitleCodec;
|
||||
use MediaWiki\Title\NamespaceInfo;
|
||||
use MediaWiki\User\Options\StaticUserOptionsLookup;
|
||||
use Wikimedia\Parsoid\DOM\Document;
|
||||
use Wikimedia\Parsoid\DOM\Element;
|
||||
use Wikimedia\Parsoid\Utils\DOMCompat;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use ApiTestCase;
|
||||
use MediaWiki\Tests\Api\ApiTestCase;
|
||||
use MediaWiki\Title\Title;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use ApiTestCase;
|
||||
use MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsPageInfo;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Tests\Api\ApiTestCase;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use ApiTestCase;
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Tests\Api\ApiTestCase;
|
||||
|
||||
/**
|
||||
* @group medium
|
||||
|
|
Loading…
Reference in a new issue