Use namespaced classes

This requires 1.42 for some new names

Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I0f43f4db86de2990c8902a36976923ad9f0ae67a
This commit is contained in:
Umherirrender 2024-01-04 21:53:17 +01:00
parent 960c2b3194
commit ef074299ca
4 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@
"manifest_version": 2,
"load_composer_autoloader": true,
"requires": {
"MediaWiki": ">= 1.41"
"MediaWiki": ">= 1.42"
},
"MessagesDirs": {
"TemplateStyles": [

View file

@ -7,15 +7,15 @@ namespace MediaWiki\Extension\TemplateStyles;
* @license GPL-2.0-or-later
*/
use Config;
use ContentHandler;
use ExtensionRegistry;
use Html;
use InvalidArgumentException;
use MapCacheLRU;
use MediaWiki\Config\Config;
use MediaWiki\Extension\TemplateStyles\Hooks\HookRunner;
use MediaWiki\Hook\ParserClearStateHook;
use MediaWiki\Hook\ParserFirstCallInitHook;
use MediaWiki\Html\Html;
use MediaWiki\MediaWikiServices;
use MediaWiki\Revision\Hook\ContentHandlerDefaultModelForHook;
use MediaWiki\Revision\SlotRecord;

View file

@ -13,9 +13,9 @@ use CSSJanus;
use MediaWiki\Content\Renderer\ContentParseParams;
use MediaWiki\Content\ValidationParams;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\ParserOutput;
use MediaWiki\Status\Status;
use Message;
use ParserOutput;
use Status;
use StatusValue;
use Wikimedia\CSS\Parser\Parser as CSSParser;
use Wikimedia\CSS\Util as CSSUtil;

View file

@ -5,6 +5,7 @@ use MediaWiki\Extension\TemplateStyles\TemplateStylesContent;
use MediaWiki\Extension\TemplateStyles\TemplateStylesContentHandler;
use MediaWiki\Page\PageIdentity;
use MediaWiki\Page\PageIdentityValue;
use MediaWiki\Status\Status;
use MediaWiki\Title\Title;
/**