Merge "Use new ResourceLoader namespace"

This commit is contained in:
jenkins-bot 2022-05-25 02:16:51 +00:00 committed by Gerrit Code Review
commit b62c5cf06a
2 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@
"license-name": "GPL-2.0-or-later",
"type": "editor",
"requires": {
"MediaWiki": ">= 1.38.0"
"MediaWiki": ">= 1.39.0"
},
"MessagesDirs": {
"WikiEditor": [

View file

@ -29,6 +29,7 @@ use MediaWiki\Hook\EditPageGetPreviewContentHook;
use MediaWiki\Hook\RecentChange_saveHook;
use MediaWiki\MediaWikiServices;
use MediaWiki\Preferences\Hook\GetPreferencesHook;
use MediaWiki\ResourceLoader as RL;
use MediaWiki\User\UserEditTracker;
use MediaWiki\User\UserOptionsLookup;
use MessageLocalizer;
@ -36,7 +37,6 @@ use MWCryptRand;
use OutputPage;
use RecentChange;
use RequestContext;
use ResourceLoaderContext;
use Status;
use User;
use WebRequest;
@ -364,11 +364,11 @@ class Hooks implements
}
/**
* @param ResourceLoaderContext $context
* @param RL\Context $context
* @param Config $config
* @return array
*/
public static function getModuleData( ResourceLoaderContext $context, Config $config ) {
public static function getModuleData( RL\Context $context, Config $config ) {
return [
// expose magic words for use by the wikieditor toolbar
'magicWords' => self::getMagicWords(),
@ -379,11 +379,11 @@ class Hooks implements
}
/**
* @param ResourceLoaderContext $context
* @param RL\Context $context
* @param Config $config
* @return array
*/
public static function getModuleDataSummary( ResourceLoaderContext $context, Config $config ) {
public static function getModuleDataSummary( RL\Context $context, Config $config ) {
return [
'magicWords' => self::getMagicWords(),
'signature' => self::getSignatureMessage( $context, true ),