resourceloader: Minor doc changes following PSR-4 namepace change

Follows Id08a220e1d60 (after I92998ae6a82e).

Change-Id: I33d20201bfee4595baa39c01eaf8b7de6034a8ed
pull/144/head
Timo Tijhof 3 years ago committed by Krinkle
parent f01a391f0d
commit 85892edce5

@ -3344,7 +3344,7 @@ config-schema:
**Example: Using an alternate subclass**
```
$wgResourceModules['ext.myExtension'] = [
'class' => WikiModule::class,
'class' => \MediaWiki\ResourceLoader\WikiModule::class,
];
```
**Example: Deprecated module**

@ -350,7 +350,7 @@
}
},
{
"description": "A ResourceLoader ImageModule definition",
"description": "An ImageModule definition",
"additionalProperties": false,
"properties": {
"class": {
@ -398,7 +398,7 @@
}
},
{
"description": "An arbitrary ResourceLoaderModule definition by class",
"description": "An arbitrary ResourceLoader Module definition by class",
"properties": {
"class": {
"type": "string",

@ -174,7 +174,7 @@
"type": "object",
"anyOf": [
{
"description": "A ResourceLoader FileModule definition",
"description": "A FileModule definition",
"additionalProperties": false,
"properties": {
"localBasePath": {
@ -321,7 +321,7 @@
}
},
{
"description": "A ResourceLoader WikiModule definition",
"description": "A WikiModule definition",
"additionalProperties": false,
"properties": {
"class": {
@ -363,7 +363,7 @@
}
},
{
"description": "A ResourceLoaderImageModule definition",
"description": "An ImageModule definition",
"additionalProperties": false,
"properties": {
"class": {

@ -5206,7 +5206,7 @@ class MainConfigSchema {
*
* ```
* $wgResourceModules['ext.myExtension'] = [
* 'class' => WikiModule::class,
* 'class' => \MediaWiki\ResourceLoader\WikiModule::class,
* ];
* ```
*

@ -61,7 +61,7 @@ class CodexModule extends FileModule {
* "packageFiles": [
* {
* "name": "icons.json",
* "callback": "ResourceLoaderCodexModule::getIcons",
* "callback": "MediaWiki\\ResourceLoader\\CodexModule::getIcons",
* "callbackParam": [
* "cdxIconClear",
* "cdxIconTrash"

@ -13,7 +13,7 @@ interface ResourceLoaderSiteModulePagesHook {
/**
* Change which wiki pages comprise the `site` module in given skin.
*
* This hook is called from ResourceLoaderSiteModule.
* This hook is called from MediaWiki\ResourceLoader\SiteModule.
*
* @since 1.35
* @param string $skin Current skin key

@ -451,7 +451,7 @@ class ResourceLoader implements LoggerAwareInterface {
}
}
// Batched version of ResourceLoaderWikiModule::getTitleInfo
// Batched version of WikiModule::getTitleInfo
$dbr = wfGetDB( DB_REPLICA );
WikiModule::preloadTitleInfo( $context, $dbr, $moduleNames );

@ -152,7 +152,7 @@ class WebInstallerOutput {
] );
$module->setConfig( $resourceLoader->getConfig() );
// Based on: ResourceLoaderFileModule::getStyles (without the DB query)
// Based on MediaWiki\ResourceLoader\FileModule::getStyles, without the DB query
$styles = ResourceLoader::makeCombinedStyles(
$module->readStyleFiles(
$module->getStyleFiles( $rlContext ),

@ -1,7 +1,7 @@
<?php
/**
* The web entry point for ResourceLoader, which serves static CSS/JavaScript
* via ResourceLoaderModule subclasses.
* The web entry point for @ref ResourceLoader, which serves static CSS/JavaScript
* via @ref MediaWiki\ResourceLoader\Module Module subclasses.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save