mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 15:36:58 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Change-Id: Iab065a2005acccfe05cc827fdafc7861687d053d
This commit is contained in:
parent
2dd635bb4d
commit
7e5eceb5a6
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Api;
|
namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
use ApiBase;
|
|
||||||
use DateInterval;
|
use DateInterval;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
|
use MediaWiki\Api\ApiBase;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
use MediaWiki\Utils\MWTimestamp;
|
use MediaWiki\Utils\MWTimestamp;
|
||||||
use Wikimedia\ParamValidator\ParamValidator;
|
use Wikimedia\ParamValidator\ParamValidator;
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Api;
|
namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use ApiMain;
|
use MediaWiki\Api\ApiMain;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
use MediaWiki\ParamValidator\TypeDef\TitleDef;
|
use MediaWiki\ParamValidator\TypeDef\TitleDef;
|
||||||
use MediaWiki\ParamValidator\TypeDef\UserDef;
|
use MediaWiki\ParamValidator\TypeDef\UserDef;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Api;
|
namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use MediaWiki\Extension\Notifications\AttributeManager;
|
use MediaWiki\Extension\Notifications\AttributeManager;
|
||||||
use MediaWiki\Extension\Notifications\Controller\NotificationController;
|
use MediaWiki\Extension\Notifications\Controller\NotificationController;
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
// This is a GET module, not a POST module, for multi-DC support. See T222851.
|
// This is a GET module, not a POST module, for multi-DC support. See T222851.
|
||||||
// Note that this module doesn't write to the database, only to the seentime cache.
|
// Note that this module doesn't write to the database, only to the seentime cache.
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use MediaWiki\Extension\Notifications\SeenTime;
|
use MediaWiki\Extension\Notifications\SeenTime;
|
||||||
use Wikimedia\ParamValidator\ParamValidator;
|
use Wikimedia\ParamValidator\ParamValidator;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Api;
|
namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use ApiMain;
|
use MediaWiki\Api\ApiMain;
|
||||||
use MediaWiki\Cache\LinkBatchFactory;
|
use MediaWiki\Cache\LinkBatchFactory;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
use MediaWiki\User\CentralId\CentralIdLookup;
|
use MediaWiki\User\CentralId\CentralIdLookup;
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Api;
|
namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use ApiQuery;
|
use MediaWiki\Api\ApiQuery;
|
||||||
use ApiQueryBase;
|
use MediaWiki\Api\ApiQueryBase;
|
||||||
use MediaWiki\Config\Config;
|
use MediaWiki\Config\Config;
|
||||||
use MediaWiki\Extension\Notifications\AttributeManager;
|
use MediaWiki\Extension\Notifications\AttributeManager;
|
||||||
use MediaWiki\Extension\Notifications\Bundler;
|
use MediaWiki\Extension\Notifications\Bundler;
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Api;
|
namespace MediaWiki\Extension\Notifications\Api;
|
||||||
|
|
||||||
use ApiQuery;
|
use MediaWiki\Api\ApiQuery;
|
||||||
use ApiQueryBase;
|
use MediaWiki\Api\ApiQueryBase;
|
||||||
use ApiUsageException;
|
use MediaWiki\Api\ApiUsageException;
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
use MediaWiki\Extension\Notifications\NotifUser;
|
use MediaWiki\Extension\Notifications\NotifUser;
|
||||||
use MediaWiki\Extension\Notifications\Services;
|
use MediaWiki\Extension\Notifications\Services;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use UnexpectedValueException;
|
use UnexpectedValueException;
|
||||||
use WANObjectCache;
|
use Wikimedia\ObjectCache\WANObjectCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Caches an ContainmentList within WANObjectCache to prevent needing
|
* Caches an ContainmentList within WANObjectCache to prevent needing
|
||||||
|
|
|
@ -6,7 +6,7 @@ use BadMethodCallException;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Preferences\MultiUsernameFilter;
|
use MediaWiki\Preferences\MultiUsernameFilter;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
use WANObjectCache;
|
use Wikimedia\ObjectCache\WANObjectCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utilizes ContainmentList interface to provide a fluent interface to whitelist/blacklist
|
* Utilizes ContainmentList interface to provide a fluent interface to whitelist/blacklist
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Controller;
|
namespace MediaWiki\Extension\Notifications\Controller;
|
||||||
|
|
||||||
use IDBAccessObject;
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Iterator;
|
use Iterator;
|
||||||
use MapCacheLRU;
|
use MapCacheLRU;
|
||||||
|
@ -24,6 +23,7 @@ use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
use MediaWiki\User\UserIdentity;
|
use MediaWiki\User\UserIdentity;
|
||||||
|
use Wikimedia\Rdbms\IDBAccessObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents the controller for notifications
|
* This class represents the controller for notifications
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Context\RequestContext;
|
use MediaWiki\Context\RequestContext;
|
||||||
use MediaWiki\Extension\Notifications\Formatters\EchoEventFormatter;
|
use MediaWiki\Extension\Notifications\Formatters\EchoEventFormatter;
|
||||||
use MediaWiki\Extension\Notifications\Formatters\EchoFlyoutFormatter;
|
use MediaWiki\Extension\Notifications\Formatters\EchoFlyoutFormatter;
|
||||||
|
@ -10,6 +9,7 @@ use MediaWiki\Extension\Notifications\Formatters\EchoModelFormatter;
|
||||||
use MediaWiki\Extension\Notifications\Formatters\SpecialNotificationsFormatter;
|
use MediaWiki\Extension\Notifications\Formatters\SpecialNotificationsFormatter;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
use MediaWiki\Extension\Notifications\Model\Notification;
|
use MediaWiki\Extension\Notifications\Model\Notification;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
use MediaWiki\User\UserIdentity;
|
use MediaWiki\User\UserIdentity;
|
||||||
|
|
|
@ -3,12 +3,13 @@
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use Article;
|
use Article;
|
||||||
use IDBAccessObject;
|
use MediaWiki\Content\TextContent;
|
||||||
use Language;
|
|
||||||
use MediaWiki\Context\RequestContext;
|
use MediaWiki\Context\RequestContext;
|
||||||
use MediaWiki\Extension\Notifications\Hooks\HookRunner;
|
use MediaWiki\Extension\Notifications\Hooks\HookRunner;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use MediaWiki\Parser\ParserOptions;
|
||||||
use MediaWiki\Parser\ParserOutput;
|
use MediaWiki\Parser\ParserOutput;
|
||||||
use MediaWiki\Parser\Sanitizer;
|
use MediaWiki\Parser\Sanitizer;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
|
@ -16,9 +17,8 @@ use MediaWiki\Revision\SlotRecord;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
use MediaWiki\User\UserNameUtils;
|
use MediaWiki\User\UserNameUtils;
|
||||||
use ParserOptions;
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use TextContent;
|
use Wikimedia\Rdbms\IDBAccessObject;
|
||||||
|
|
||||||
abstract class DiscussionParser {
|
abstract class DiscussionParser {
|
||||||
private const HEADER_REGEX = '^(==+)\h*([^=].*)\h*\1$';
|
private const HEADER_REGEX = '^(==+)\h*([^=].*)\h*\1$';
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use BatchRowIterator;
|
use BatchRowIterator;
|
||||||
use Language;
|
|
||||||
use MailAddress;
|
use MailAddress;
|
||||||
use MediaWiki\Extension\Notifications\Formatters\EchoHtmlDigestEmailFormatter;
|
use MediaWiki\Extension\Notifications\Formatters\EchoHtmlDigestEmailFormatter;
|
||||||
use MediaWiki\Extension\Notifications\Formatters\EchoPlainTextDigestEmailFormatter;
|
use MediaWiki\Extension\Notifications\Formatters\EchoPlainTextDigestEmailFormatter;
|
||||||
use MediaWiki\Extension\Notifications\Mapper\EventMapper;
|
use MediaWiki\Extension\Notifications\Mapper\EventMapper;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Languages\LanguageFactory;
|
use MediaWiki\Languages\LanguageFactory;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\User\Options\UserOptionsManager;
|
use MediaWiki\User\Options\UserOptionsManager;
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use ApiMain;
|
|
||||||
use CentralAuthSessionProvider;
|
use CentralAuthSessionProvider;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use MediaWiki\Api\ApiMain;
|
||||||
use MediaWiki\Context\RequestContext;
|
use MediaWiki\Context\RequestContext;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Message\Message;
|
use MediaWiki\Message\Message;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\Message\Message;
|
use MediaWiki\Message\Message;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
|
@ -4,9 +4,9 @@ namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use JsonSerializable;
|
use JsonSerializable;
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\Controller\NotificationController;
|
use MediaWiki\Extension\Notifications\Controller\NotificationController;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Message\Message;
|
use MediaWiki\Message\Message;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Html\Html;
|
use MediaWiki\Html\Html;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Parser\Sanitizer;
|
use MediaWiki\Parser\Sanitizer;
|
||||||
use MediaWiki\SpecialPage\SpecialPage;
|
use MediaWiki\SpecialPage\SpecialPage;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Html\Html;
|
use MediaWiki\Html\Html;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Parser\Sanitizer;
|
use MediaWiki\Parser\Sanitizer;
|
||||||
use MediaWiki\SpecialPage\SpecialPage;
|
use MediaWiki\SpecialPage\SpecialPage;
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\DiscussionParser;
|
use MediaWiki\Extension\Notifications\DiscussionParser;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use Language;
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Parser\Sanitizer;
|
use MediaWiki\Parser\Sanitizer;
|
||||||
use MediaWiki\SpecialPage\SpecialPage;
|
use MediaWiki\SpecialPage\SpecialPage;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
namespace MediaWiki\Extension\Notifications\Formatters;
|
namespace MediaWiki\Extension\Notifications\Formatters;
|
||||||
|
|
||||||
use BadMethodCallException;
|
use BadMethodCallException;
|
||||||
use Language;
|
|
||||||
use MediaWiki\Extension\Notifications\DiscussionParser;
|
use MediaWiki\Extension\Notifications\DiscussionParser;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Parser\Parser;
|
use MediaWiki\Parser\Parser;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
|
|
|
@ -2,18 +2,16 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use ApiModuleManager;
|
|
||||||
use Content;
|
|
||||||
use EmailNotification;
|
use EmailNotification;
|
||||||
use ExtensionRegistry;
|
|
||||||
use Language;
|
|
||||||
use LogEntry;
|
use LogEntry;
|
||||||
use LogicException;
|
use LogicException;
|
||||||
use MailAddress;
|
use MailAddress;
|
||||||
|
use MediaWiki\Api\ApiModuleManager;
|
||||||
use MediaWiki\Api\Hook\ApiMain__moduleManagerHook;
|
use MediaWiki\Api\Hook\ApiMain__moduleManagerHook;
|
||||||
use MediaWiki\Auth\AuthManager;
|
use MediaWiki\Auth\AuthManager;
|
||||||
use MediaWiki\Auth\Hook\LocalUserCreatedHook;
|
use MediaWiki\Auth\Hook\LocalUserCreatedHook;
|
||||||
use MediaWiki\Config\Config;
|
use MediaWiki\Config\Config;
|
||||||
|
use MediaWiki\Content\Content;
|
||||||
use MediaWiki\DAO\WikiAwareEntity;
|
use MediaWiki\DAO\WikiAwareEntity;
|
||||||
use MediaWiki\Deferred\DeferredUpdates;
|
use MediaWiki\Deferred\DeferredUpdates;
|
||||||
use MediaWiki\Deferred\LinksUpdate\LinksTable;
|
use MediaWiki\Deferred\LinksUpdate\LinksTable;
|
||||||
|
@ -39,6 +37,7 @@ use MediaWiki\Hook\SkinTemplateNavigation__UniversalHook;
|
||||||
use MediaWiki\Hook\SpecialMuteModifyFormFieldsHook;
|
use MediaWiki\Hook\SpecialMuteModifyFormFieldsHook;
|
||||||
use MediaWiki\HookContainer\HookContainer;
|
use MediaWiki\HookContainer\HookContainer;
|
||||||
use MediaWiki\HTMLForm\Field\HTMLCheckMatrix;
|
use MediaWiki\HTMLForm\Field\HTMLCheckMatrix;
|
||||||
|
use MediaWiki\Language\Language;
|
||||||
use MediaWiki\Linker\LinkRenderer;
|
use MediaWiki\Linker\LinkRenderer;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\MainConfigNames;
|
use MediaWiki\MainConfigNames;
|
||||||
|
@ -53,6 +52,7 @@ use MediaWiki\Permissions\PermissionManager;
|
||||||
use MediaWiki\Preferences\Hook\GetPreferencesHook;
|
use MediaWiki\Preferences\Hook\GetPreferencesHook;
|
||||||
use MediaWiki\Preferences\MultiTitleFilter;
|
use MediaWiki\Preferences\MultiTitleFilter;
|
||||||
use MediaWiki\Preferences\MultiUsernameFilter;
|
use MediaWiki\Preferences\MultiUsernameFilter;
|
||||||
|
use MediaWiki\Registration\ExtensionRegistry;
|
||||||
use MediaWiki\Request\WebRequest;
|
use MediaWiki\Request\WebRequest;
|
||||||
use MediaWiki\ResourceLoader as RL;
|
use MediaWiki\ResourceLoader as RL;
|
||||||
use MediaWiki\ResourceLoader\Hook\ResourceLoaderRegisterModulesHook;
|
use MediaWiki\ResourceLoader\Hook\ResourceLoaderRegisterModulesHook;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
namespace MediaWiki\Extension\Notifications\Model;
|
namespace MediaWiki\Extension\Notifications\Model;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use IDBAccessObject;
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use MediaWiki\Extension\Notifications\Bundleable;
|
use MediaWiki\Extension\Notifications\Bundleable;
|
||||||
use MediaWiki\Extension\Notifications\Controller\NotificationController;
|
use MediaWiki\Extension\Notifications\Controller\NotificationController;
|
||||||
|
@ -20,6 +19,7 @@ use MediaWiki\User\User;
|
||||||
use MediaWiki\User\UserIdentity;
|
use MediaWiki\User\UserIdentity;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use stdClass;
|
use stdClass;
|
||||||
|
use Wikimedia\Rdbms\IDBAccessObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Immutable class to represent an event.
|
* Immutable class to represent an event.
|
||||||
|
|
|
@ -15,7 +15,7 @@ use MediaWiki\User\UserFactory;
|
||||||
use MediaWiki\User\UserIdentity;
|
use MediaWiki\User\UserIdentity;
|
||||||
use MediaWiki\Utils\MWTimestamp;
|
use MediaWiki\Utils\MWTimestamp;
|
||||||
use MediaWiki\WikiMap\WikiMap;
|
use MediaWiki\WikiMap\WikiMap;
|
||||||
use WANObjectCache;
|
use Wikimedia\ObjectCache\WANObjectCache;
|
||||||
use Wikimedia\Rdbms\Database;
|
use Wikimedia\Rdbms\Database;
|
||||||
use Wikimedia\Rdbms\ReadOnlyMode;
|
use Wikimedia\Rdbms\ReadOnlyMode;
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
|
use MediaWiki\Content\TextContent;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
use TextContent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements ContainmentList interface for sourcing a list of items from a wiki
|
* Implements ContainmentList interface for sourcing a list of items from a wiki
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Push\Api;
|
namespace MediaWiki\Extension\Notifications\Push\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use ApiModuleManager;
|
use MediaWiki\Api\ApiModuleManager;
|
||||||
use ApiUsageException;
|
use MediaWiki\Api\ApiUsageException;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use Wikimedia\ParamValidator\ParamValidator;
|
use Wikimedia\ParamValidator\ParamValidator;
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Push\Api;
|
namespace MediaWiki\Extension\Notifications\Push\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use ApiMain;
|
use MediaWiki\Api\ApiMain;
|
||||||
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
|
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
|
||||||
use MediaWiki\Extension\Notifications\Push\Utils;
|
use MediaWiki\Extension\Notifications\Push\Utils;
|
||||||
use MediaWiki\Extension\Notifications\Services;
|
use MediaWiki\Extension\Notifications\Services;
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Push\Api;
|
namespace MediaWiki\Extension\Notifications\Push\Api;
|
||||||
|
|
||||||
use ApiBase;
|
use MediaWiki\Api\ApiBase;
|
||||||
use ApiMain;
|
use MediaWiki\Api\ApiMain;
|
||||||
use ApiUsageException;
|
use MediaWiki\Api\ApiUsageException;
|
||||||
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
|
use MediaWiki\Extension\Notifications\Push\SubscriptionManager;
|
||||||
use MediaWiki\Extension\Notifications\Push\Utils;
|
use MediaWiki\Extension\Notifications\Push\Utils;
|
||||||
use MediaWiki\Extension\Notifications\Services;
|
use MediaWiki\Extension\Notifications\Services;
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications;
|
namespace MediaWiki\Extension\Notifications;
|
||||||
|
|
||||||
use BagOStuff;
|
|
||||||
use CachedBagOStuff;
|
|
||||||
use MediaWiki\Deferred\DeferredUpdates;
|
use MediaWiki\Deferred\DeferredUpdates;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\User\CentralId\CentralIdLookup;
|
use MediaWiki\User\CentralId\CentralIdLookup;
|
||||||
use MediaWiki\User\UserIdentity;
|
use MediaWiki\User\UserIdentity;
|
||||||
use UnexpectedValueException;
|
use UnexpectedValueException;
|
||||||
|
use Wikimedia\ObjectCache\BagOStuff;
|
||||||
|
use Wikimedia\ObjectCache\CachedBagOStuff;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A small wrapper around ObjectCache to manage
|
* A small wrapper around ObjectCache to manage
|
||||||
|
|
|
@ -4,6 +4,7 @@ use MediaWiki\Extension\Notifications\AttributeManager;
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
use MediaWiki\Extension\Notifications\NotifUser;
|
use MediaWiki\Extension\Notifications\NotifUser;
|
||||||
use MediaWiki\Extension\Notifications\UnreadWikis;
|
use MediaWiki\Extension\Notifications\UnreadWikis;
|
||||||
|
use MediaWiki\Maintenance\Maintenance;
|
||||||
use MediaWiki\User\CentralId\CentralIdLookup;
|
use MediaWiki\User\CentralId\CentralIdLookup;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
use MediaWiki\WikiMap\WikiMap;
|
use MediaWiki\WikiMap\WikiMap;
|
||||||
|
|
|
@ -2,11 +2,15 @@
|
||||||
// phpcs:disable Generic.Files.LineLength -- Long html test examples
|
// phpcs:disable Generic.Files.LineLength -- Long html test examples
|
||||||
// @phan-file-suppress PhanUndeclaredClassMethod, PhanUndeclaredClassConstant Other extensions used for testing purposes
|
// @phan-file-suppress PhanUndeclaredClassMethod, PhanUndeclaredClassConstant Other extensions used for testing purposes
|
||||||
|
|
||||||
|
use MediaWiki\Content\WikitextContent;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
|
use MediaWiki\Maintenance\Maintenance;
|
||||||
|
use MediaWiki\Registration\ExtensionRegistry;
|
||||||
use MediaWiki\Revision\RevisionRecord;
|
use MediaWiki\Revision\RevisionRecord;
|
||||||
use MediaWiki\Revision\SlotRecord;
|
use MediaWiki\Revision\SlotRecord;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
use Wikimedia\Rdbms\IDBAccessObject;
|
||||||
|
|
||||||
$IP = getenv( 'MW_INSTALL_PATH' );
|
$IP = getenv( 'MW_INSTALL_PATH' );
|
||||||
if ( $IP === false ) {
|
if ( $IP === false ) {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
use MediaWiki\Extension\Notifications\EmailBatch;
|
use MediaWiki\Extension\Notifications\EmailBatch;
|
||||||
|
use MediaWiki\Maintenance\Maintenance;
|
||||||
|
|
||||||
$IP = getenv( 'MW_INSTALL_PATH' );
|
$IP = getenv( 'MW_INSTALL_PATH' );
|
||||||
if ( $IP === false ) {
|
if ( $IP === false ) {
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
use MediaWiki\Extension\Notifications\NotifUser;
|
use MediaWiki\Extension\Notifications\NotifUser;
|
||||||
|
use MediaWiki\Maintenance\Maintenance;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
||||||
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
|
use MediaWiki\Maintenance\Maintenance;
|
||||||
|
|
||||||
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
||||||
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use MediaWiki\Extension\Notifications\DbFactory;
|
use MediaWiki\Extension\Notifications\DbFactory;
|
||||||
|
use MediaWiki\Maintenance\LoggedUpdateMaintenance;
|
||||||
|
|
||||||
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
||||||
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
* @ingroup Maintenance
|
* @ingroup Maintenance
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use MediaWiki\Maintenance\LoggedUpdateMaintenance;
|
||||||
use MediaWiki\User\User;
|
use MediaWiki\User\User;
|
||||||
|
|
||||||
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
// Keep in sync with same script in Flow.
|
// Keep in sync with same script in Flow.
|
||||||
|
|
||||||
|
use MediaWiki\Maintenance\Maintenance;
|
||||||
|
|
||||||
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
require_once getenv( 'MW_INSTALL_PATH' ) !== false
|
||||||
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
||||||
: __DIR__ . '/../../../maintenance/Maintenance.php';
|
: __DIR__ . '/../../../maintenance/Maintenance.php';
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use MediaWiki\Api\ApiUsageException;
|
||||||
use MediaWiki\Extension\Notifications\Mapper\NotificationMapper;
|
use MediaWiki\Extension\Notifications\Mapper\NotificationMapper;
|
||||||
use MediaWiki\Extension\Notifications\NotifUser;
|
use MediaWiki\Extension\Notifications\NotifUser;
|
||||||
use MediaWiki\Tests\Api\ApiTestCase;
|
use MediaWiki\Tests\Api\ApiTestCase;
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Test;
|
namespace MediaWiki\Extension\Notifications\Test;
|
||||||
|
|
||||||
use HashBagOStuff;
|
|
||||||
use MediaWiki\Extension\Notifications\ArrayList;
|
use MediaWiki\Extension\Notifications\ArrayList;
|
||||||
use MediaWiki\Extension\Notifications\CachedList;
|
use MediaWiki\Extension\Notifications\CachedList;
|
||||||
use MediaWiki\Extension\Notifications\ContainmentSet;
|
use MediaWiki\Extension\Notifications\ContainmentSet;
|
||||||
use MediaWiki\Extension\Notifications\OnWikiList;
|
use MediaWiki\Extension\Notifications\OnWikiList;
|
||||||
use MediaWikiIntegrationTestCase;
|
use MediaWikiIntegrationTestCase;
|
||||||
use WANObjectCache;
|
use Wikimedia\ObjectCache\HashBagOStuff;
|
||||||
|
use Wikimedia\ObjectCache\WANObjectCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \MediaWiki\Extension\Notifications\ContainmentSet
|
* @covers \MediaWiki\Extension\Notifications\ContainmentSet
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Notifications\Test;
|
namespace MediaWiki\Extension\Notifications\Test;
|
||||||
|
|
||||||
use ContentHandler;
|
use MediaWiki\Content\ContentHandler;
|
||||||
use MediaWiki\Extension\Notifications\Model\Event;
|
use MediaWiki\Extension\Notifications\Model\Event;
|
||||||
use MediaWiki\Extension\Notifications\UserLocator;
|
use MediaWiki\Extension\Notifications\UserLocator;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
|
|
Loading…
Reference in a new issue