mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-12 01:08:55 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: Ifcc9113bc1d2cf79d21871abe7652d7ed8dde20a
This commit is contained in:
parent
008db7ad08
commit
049a747143
|
@ -13,8 +13,8 @@ use MediaWiki\Hook\ParserFirstCallInitHook;
|
||||||
use MediaWiki\Hook\ParserOptionsRegisterHook;
|
use MediaWiki\Hook\ParserOptionsRegisterHook;
|
||||||
use MediaWiki\HookContainer\HookContainer;
|
use MediaWiki\HookContainer\HookContainer;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
|
use MediaWiki\Parser\Parser;
|
||||||
use MediaWiki\User\Options\UserOptionsLookup;
|
use MediaWiki\User\Options\UserOptionsLookup;
|
||||||
use Parser;
|
|
||||||
use ParserOptions;
|
use ParserOptions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Math\HookHandlers;
|
namespace MediaWiki\Extension\Math\HookHandlers;
|
||||||
|
|
||||||
use DatabaseUpdater;
|
use MediaWiki\Installer\DatabaseUpdater;
|
||||||
use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook;
|
use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,11 +13,11 @@ namespace MediaWiki\Extension\Math;
|
||||||
use ExtensionRegistry;
|
use ExtensionRegistry;
|
||||||
use Maintenance;
|
use Maintenance;
|
||||||
use MediaWiki\Config\ConfigException;
|
use MediaWiki\Config\ConfigException;
|
||||||
|
use MediaWiki\Context\RequestContext;
|
||||||
use MediaWiki\Hook\MaintenanceRefreshLinksInitHook;
|
use MediaWiki\Hook\MaintenanceRefreshLinksInitHook;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Settings\SettingsBuilder;
|
use MediaWiki\Settings\SettingsBuilder;
|
||||||
use MediaWiki\SpecialPage\Hook\SpecialPage_initListHook;
|
use MediaWiki\SpecialPage\Hook\SpecialPage_initListHook;
|
||||||
use RequestContext;
|
|
||||||
|
|
||||||
class Hooks implements
|
class Hooks implements
|
||||||
SpecialPage_initListHook,
|
SpecialPage_initListHook,
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace MediaWiki\Extension\Math\Hooks;
|
||||||
|
|
||||||
use MediaWiki\Extension\Math\MathRenderer;
|
use MediaWiki\Extension\Math\MathRenderer;
|
||||||
use MediaWiki\HookContainer\HookContainer;
|
use MediaWiki\HookContainer\HookContainer;
|
||||||
use Parser;
|
use MediaWiki\Parser\Parser;
|
||||||
use stdClass;
|
use stdClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace MediaWiki\Extension\Math\Hooks;
|
namespace MediaWiki\Extension\Math\Hooks;
|
||||||
|
|
||||||
use MediaWiki\Extension\Math\MathRenderer;
|
use MediaWiki\Extension\Math\MathRenderer;
|
||||||
use Parser;
|
use MediaWiki\Parser\Parser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a hook handler interface, see docs/Hooks.md in core.
|
* This is a hook handler interface, see docs/Hooks.md in core.
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace MediaWiki\Extension\Math\InputCheck;
|
||||||
|
|
||||||
use MediaWiki\Extension\Math\MathConfig;
|
use MediaWiki\Extension\Math\MathConfig;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use Message;
|
use MediaWiki\Message\Message;
|
||||||
use stdClass;
|
use stdClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,7 +7,7 @@ use MediaWiki\Extension\Math\Hooks\HookRunner;
|
||||||
use MediaWiki\Extension\Math\MathRenderer;
|
use MediaWiki\Extension\Math\MathRenderer;
|
||||||
use MediaWiki\Extension\Math\WikiTexVC\TexVC;
|
use MediaWiki\Extension\Math\WikiTexVC\TexVC;
|
||||||
use MediaWiki\HookContainer\HookContainer;
|
use MediaWiki\HookContainer\HookContainer;
|
||||||
use Message;
|
use MediaWiki\Message\Message;
|
||||||
use WANObjectCache;
|
use WANObjectCache;
|
||||||
|
|
||||||
class LocalChecker extends BaseChecker {
|
class LocalChecker extends BaseChecker {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
namespace MediaWiki\Extension\Math\InputCheck;
|
namespace MediaWiki\Extension\Math\InputCheck;
|
||||||
|
|
||||||
use MediaWiki\Http\HttpRequestFactory;
|
use MediaWiki\Http\HttpRequestFactory;
|
||||||
use Message;
|
use MediaWiki\Message\Message;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use WANObjectCache;
|
use WANObjectCache;
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace MediaWiki\Extension\Math\InputCheck;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use MediaWiki\Extension\Math\MathRestbaseInterface;
|
use MediaWiki\Extension\Math\MathRestbaseInterface;
|
||||||
use Message;
|
use MediaWiki\Message\Message;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MediaWiki math extension
|
* MediaWiki math extension
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace MediaWiki\Extension\Math;
|
||||||
|
|
||||||
use ExtensionRegistry;
|
use ExtensionRegistry;
|
||||||
use MediaWiki\Config\ServiceOptions;
|
use MediaWiki\Config\ServiceOptions;
|
||||||
use Message;
|
use MediaWiki\Message\Message;
|
||||||
use Wikibase\Client\WikibaseClient;
|
use Wikibase\Client\WikibaseClient;
|
||||||
|
|
||||||
class MathConfig {
|
class MathConfig {
|
||||||
|
|
|
@ -11,14 +11,14 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Math;
|
namespace MediaWiki\Extension\Math;
|
||||||
|
|
||||||
|
use MediaWiki\Context\RequestContext;
|
||||||
use MediaWiki\Extension\Math\InputCheck\BaseChecker;
|
use MediaWiki\Extension\Math\InputCheck\BaseChecker;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use MediaWiki\Message\Message;
|
||||||
|
use MediaWiki\Parser\Parser;
|
||||||
use MediaWiki\Parser\Sanitizer;
|
use MediaWiki\Parser\Sanitizer;
|
||||||
use Message;
|
|
||||||
use Parser;
|
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use RequestContext;
|
|
||||||
use StringUtils;
|
use StringUtils;
|
||||||
use WANObjectCache;
|
use WANObjectCache;
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@ use MediaWiki\Extension\Math\Widget\WikibaseEntitySelector;
|
||||||
use MediaWiki\Html\Html;
|
use MediaWiki\Html\Html;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use MediaWiki\Message\Message;
|
||||||
use MediaWiki\Output\OutputPage;
|
use MediaWiki\Output\OutputPage;
|
||||||
use MediaWiki\SpecialPage\SpecialPage;
|
use MediaWiki\SpecialPage\SpecialPage;
|
||||||
use Message;
|
|
||||||
use OOUI\ButtonInputWidget;
|
use OOUI\ButtonInputWidget;
|
||||||
use OOUI\FormLayout;
|
use OOUI\FormLayout;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace MediaWiki\Extension\Math\Widget;
|
||||||
use MediaWiki\Extension\Math\MathConfig;
|
use MediaWiki\Extension\Math\MathConfig;
|
||||||
use MediaWiki\Extension\Math\Render\RendererFactory;
|
use MediaWiki\Extension\Math\Render\RendererFactory;
|
||||||
use MediaWiki\Extension\Math\SpecialMathStatus;
|
use MediaWiki\Extension\Math\SpecialMathStatus;
|
||||||
use OOUIHTMLForm;
|
use MediaWiki\HTMLForm\OOUIHTMLForm;
|
||||||
|
|
||||||
class MathTestInputForm extends OOUIHTMLForm {
|
class MathTestInputForm extends OOUIHTMLForm {
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ use MediaWiki\Extension\Math\InputCheck\MathoidChecker;
|
||||||
use MediaWiki\Extension\Math\InputCheck\RestbaseChecker;
|
use MediaWiki\Extension\Math\InputCheck\RestbaseChecker;
|
||||||
use MediaWiki\Http\HttpRequestFactory;
|
use MediaWiki\Http\HttpRequestFactory;
|
||||||
use MediaWiki\Logger\LoggerFactory;
|
use MediaWiki\Logger\LoggerFactory;
|
||||||
|
use MediaWiki\Message\Message;
|
||||||
use MediaWiki\Tests\Unit\MockServiceDependenciesTrait;
|
use MediaWiki\Tests\Unit\MockServiceDependenciesTrait;
|
||||||
use MediaWikiIntegrationTestCase;
|
use MediaWikiIntegrationTestCase;
|
||||||
use Message;
|
|
||||||
use WANObjectCache;
|
use WANObjectCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
namespace MediaWiki\Extension\Math\InputCheck;
|
namespace MediaWiki\Extension\Math\InputCheck;
|
||||||
|
|
||||||
use HashBagOStuff;
|
use HashBagOStuff;
|
||||||
|
use MediaWiki\Message\Message;
|
||||||
use MediaWikiIntegrationTestCase;
|
use MediaWikiIntegrationTestCase;
|
||||||
use Message;
|
|
||||||
use WANObjectCache;
|
use WANObjectCache;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
use MediaWiki\Extension\Math\InputCheck\RestbaseChecker;
|
use MediaWiki\Extension\Math\InputCheck\RestbaseChecker;
|
||||||
use MediaWiki\Extension\Math\Tests\MathMockHttpTrait;
|
use MediaWiki\Extension\Math\Tests\MathMockHttpTrait;
|
||||||
|
use MediaWiki\Message\Message;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group Math
|
* @group Math
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
use MediaWiki\Extension\Math\MathMathML;
|
use MediaWiki\Extension\Math\MathMathML;
|
||||||
use MediaWiki\Extension\Math\MathRestbaseInterface;
|
use MediaWiki\Extension\Math\MathRestbaseInterface;
|
||||||
use MediaWiki\Extension\Math\Tests\MathMockHttpTrait;
|
use MediaWiki\Extension\Math\Tests\MathMockHttpTrait;
|
||||||
|
use MediaWiki\Parser\Parser;
|
||||||
use Wikimedia\TestingAccessWrapper;
|
use Wikimedia\TestingAccessWrapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace MediaWiki\Extension\Math\Tests;
|
namespace MediaWiki\Extension\Math\Tests;
|
||||||
|
|
||||||
|
use MediaWiki\Context\RequestContext;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
use MediaWikiIntegrationTestCase;
|
use MediaWikiIntegrationTestCase;
|
||||||
use RequestContext;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \MediaWiki\Extension\Math\HookHandlers\PreferencesHooksHandler
|
* @covers \MediaWiki\Extension\Math\HookHandlers\PreferencesHooksHandler
|
||||||
|
|
|
@ -7,6 +7,7 @@ require_once __DIR__ . '/../../../maintenance/Maintenance.php';
|
||||||
use MediaWiki\Extension\Math\MathConfig;
|
use MediaWiki\Extension\Math\MathConfig;
|
||||||
use MediaWiki\Extension\Math\MathMathMLCli;
|
use MediaWiki\Extension\Math\MathMathMLCli;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use MediaWiki\Parser\Parser;
|
||||||
use MediaWiki\Parser\Sanitizer;
|
use MediaWiki\Parser\Sanitizer;
|
||||||
use MediaWiki\Title\Title;
|
use MediaWiki\Title\Title;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue