mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 09:43:30 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Change-Id: Ife9826099657bcaeca1beec94863a1600fdf55f8
This commit is contained in:
parent
a72fbb6ec7
commit
eef833a112
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Extension\VisualEditor\VisualEditorParsoidClientFactory;
|
||||
use MediaWiki\Revision\RevisionLookup;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Context\DerivativeContext;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\DatabaseThreadItem;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleFormatter;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
||||
class ApiDiscussionToolsGetSubscriptions extends ApiBase {
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\CommentItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentCommentItem;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Extension\VisualEditor\ApiParsoidTrait;
|
||||
use MediaWiki\Extension\VisualEditor\VisualEditorParsoidClientFactory;
|
||||
use MediaWiki\Title\Title;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Title\Title;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use ApiUsageException;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiUsageException;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentCommentItem;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ApiMain;
|
||||
use ApiResult;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiResult;
|
||||
use MediaWiki\Context\DerivativeContext;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\VisualEditor\ParsoidClient;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Config\ConfigException;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookRunner;
|
||||
|
@ -12,6 +11,7 @@ use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentHeadingItem;
|
|||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentThreadItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ThreadItem;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Parser\Sanitizer;
|
||||
|
|
|
@ -7,12 +7,12 @@ use DateTime;
|
|||
use DateTimeImmutable;
|
||||
use DateTimeZone;
|
||||
use InvalidArgumentException;
|
||||
use Language;
|
||||
use LogicException;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentCommentItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentHeadingItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\ContentThreadItem;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\Title\MalformedTitleException;
|
||||
use MediaWiki\Title\TitleParser;
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use ApiModuleManager;
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Api\ApiModuleManager;
|
||||
use MediaWiki\Api\Hook\ApiMain__moduleManagerHook;
|
||||
use MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsThank;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
|
||||
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
|
||||
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Extension\DiscussionTools\OverflowMenuItem;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\User\UserNameUtils;
|
||||
|
||||
class DiscussionToolsHooks implements
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Extension\DiscussionTools\Notifications\AddedTopicPresentationModel;
|
||||
use MediaWiki\Extension\DiscussionTools\Notifications\CommentThanksPresentationModel;
|
||||
use MediaWiki\Extension\DiscussionTools\Notifications\EnhancedEchoEditUserTalkPresentationModel;
|
||||
|
@ -22,6 +21,7 @@ use MediaWiki\Extension\Notifications\Hooks\EchoGetBundleRulesHook;
|
|||
use MediaWiki\Extension\Notifications\Hooks\EchoGetEventsForRevisionHook;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Extension\Notifications\UserLocator;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use Wikimedia\Parsoid\Core\ResourceLimitExceededException;
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use IDBAccessObject;
|
||||
use LqtDispatch;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
|
@ -21,16 +19,18 @@ use MediaWiki\Linker\LinkTarget;
|
|||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Page\ParserOutputAccess;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleValue;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use ParserOptions;
|
||||
use RuntimeException;
|
||||
use Wikimedia\Assert\Assert;
|
||||
use Wikimedia\Parsoid\Core\ResourceLimitExceededException;
|
||||
use Wikimedia\Parsoid\Utils\DOMCompat;
|
||||
use Wikimedia\Parsoid\Utils\DOMUtils;
|
||||
use Wikimedia\Rdbms\IDBAccessObject;
|
||||
|
||||
class HookUtils {
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools\Hooks;
|
||||
|
||||
use Article;
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Actions\Hook\GetActionNameHook;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
|
@ -28,6 +27,7 @@ use MediaWiki\Output\Hook\OutputPageParserOutputHook;
|
|||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Page\Hook\BeforeDisplayNoArticleTextHook;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\Options\UserOptionsLookup;
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use DateTimeZone;
|
||||
use ILanguageConverter;
|
||||
use Language;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Language\ILanguageConverter;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\SpecialPage\SpecialPageFactory;
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoEventPresentationModel;
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoPresentationModelSection;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Extension\Notifications\DiscussionParser;
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoPresentationModelSection;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\WikiMap\WikiMap;
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@ namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
|||
|
||||
use DateInterval;
|
||||
use DateTimeImmutable;
|
||||
use ExtensionRegistry;
|
||||
use IDBAccessObject;
|
||||
use Iterator;
|
||||
use MediaWiki\Context\RequestContext;
|
||||
use MediaWiki\Deferred\DeferredUpdates;
|
||||
|
@ -31,6 +29,7 @@ use MediaWiki\Extension\EventLogging\Libs\UserBucketProvider\UserBucketProvider;
|
|||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Page\PageIdentity;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
|
@ -38,6 +37,7 @@ use Wikimedia\Assert\Assert;
|
|||
use Wikimedia\Parsoid\Core\ResourceLimitExceededException;
|
||||
use Wikimedia\Parsoid\Utils\DOMCompat;
|
||||
use Wikimedia\Parsoid\Utils\DOMUtils;
|
||||
use Wikimedia\Rdbms\IDBAccessObject;
|
||||
|
||||
class EventDispatcher {
|
||||
/**
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoEventPresentationModel;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
use MediaWiki\User\User;
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Extension\DiscussionTools\SubscriptionStore;
|
||||
use MediaWiki\Extension\Notifications\Formatters\EchoEventPresentationModel;
|
||||
use MediaWiki\Extension\Notifications\Model\Event;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Language\RawMessage;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Message\Message;
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookRunner;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\ResourceLoader as RL;
|
||||
use MediaWiki\Title\Title;
|
||||
use MessageLocalizer;
|
||||
|
|
|
@ -9,11 +9,11 @@ use MediaWiki\Html\Html;
|
|||
use MediaWiki\Languages\LanguageFactory;
|
||||
use MediaWiki\Linker\Linker;
|
||||
use MediaWiki\Page\ParserOutputAccess;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\SpecialPage\FormSpecialPage;
|
||||
use MediaWiki\SpecialPage\SpecialPage;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Utils\MWTimestamp;
|
||||
use ParserOptions;
|
||||
use Wikimedia\Assert\Assert;
|
||||
use Wikimedia\Parsoid\Utils\DOMCompat;
|
||||
use Wikimedia\Parsoid\Utils\DOMUtils;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
namespace MediaWiki\Extension\DiscussionTools;
|
||||
|
||||
use Exception;
|
||||
use Language;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\CommentItem;
|
||||
|
@ -11,6 +10,7 @@ use MediaWiki\Extension\DiscussionTools\ThreadItem\DatabaseCommentItem;
|
|||
use MediaWiki\Extension\DiscussionTools\ThreadItem\DatabaseHeadingItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\DatabaseThreadItem;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItem\HeadingItem;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Page\PageStore;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Revision\RevisionStore;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Maintenance;
|
||||
|
||||
use LoggedUpdateMaintenance;
|
||||
use MediaWiki\Maintenance\LoggedUpdateMaintenance;
|
||||
use Wikimedia\Rdbms\DBQueryError;
|
||||
use Wikimedia\Rdbms\IExpression;
|
||||
use Wikimedia\Rdbms\LikeValue;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Maintenance;
|
||||
|
||||
use Maintenance;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use Wikimedia\Rdbms\IDatabase;
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Maintenance;
|
||||
|
||||
use Language;
|
||||
use Maintenance;
|
||||
use MediaWiki\Extension\DiscussionTools\Hooks\HookUtils;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItemStore;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\Revision\RevisionStore;
|
||||
use MediaWiki\Shell\Shell;
|
||||
use MediaWiki\Title\Title;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use FormatJson;
|
||||
use MediaWiki\Cache\GenderCache;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Json\FormatJson;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentFormatter;
|
||||
use MediaWiki\Extension\DiscussionTools\CommentParser;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\User\UserIdentity;
|
||||
use MediaWiki\Utils\MWTimestamp;
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use FormatJson;
|
||||
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\Json\FormatJson;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\Languages\LanguageFactory;
|
||||
use MediaWiki\MainConfigNames;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use ImportStringSource;
|
||||
use MediaWiki\Extension\DiscussionTools\ThreadItemStore;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Title\TitleValue;
|
||||
use TestUser;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Tests;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\Tests\Api\ApiTestCase;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue