Skip to content

Commit

Permalink
resourceloader: Minor doc changes following PSR-4 namepace change
Browse files Browse the repository at this point in the history
Follows Id08a220e1d60 (after I92998ae6a82e).

Change-Id: I33d20201bfee4595baa39c01eaf8b7de6034a8ed
  • Loading branch information
Krinkle committed May 29, 2022
1 parent f01a391 commit 85892ed
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/config-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
4 changes: 2 additions & 2 deletions docs/extension.schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
}
},
{
"description": "A ResourceLoader ImageModule definition",
"description": "An ImageModule definition",
"additionalProperties": false,
"properties": {
"class": {
Expand Down Expand Up @@ -398,7 +398,7 @@
}
},
{
"description": "An arbitrary ResourceLoaderModule definition by class",
"description": "An arbitrary ResourceLoader Module definition by class",
"properties": {
"class": {
"type": "string",
Expand Down
6 changes: 3 additions & 3 deletions docs/extension.schema.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
"type": "object",
"anyOf": [
{
"description": "A ResourceLoader FileModule definition",
"description": "A FileModule definition",
"additionalProperties": false,
"properties": {
"localBasePath": {
Expand Down Expand Up @@ -321,7 +321,7 @@
}
},
{
"description": "A ResourceLoader WikiModule definition",
"description": "A WikiModule definition",
"additionalProperties": false,
"properties": {
"class": {
Expand Down Expand Up @@ -363,7 +363,7 @@
}
},
{
"description": "A ResourceLoaderImageModule definition",
"description": "An ImageModule definition",
"additionalProperties": false,
"properties": {
"class": {
Expand Down
2 changes: 1 addition & 1 deletion includes/MainConfigSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -5206,7 +5206,7 @@ public static function getDefaultValue( string $name ) {
*
* ```
* $wgResourceModules['ext.myExtension'] = [
* 'class' => WikiModule::class,
* 'class' => \MediaWiki\ResourceLoader\WikiModule::class,
* ];
* ```
*
Expand Down
2 changes: 1 addition & 1 deletion includes/ResourceLoader/CodexModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getStyleFiles( Context $context ) {
* "packageFiles": [
* {
* "name": "icons.json",
* "callback": "ResourceLoaderCodexModule::getIcons",
* "callback": "MediaWiki\\ResourceLoader\\CodexModule::getIcons",
* "callbackParam": [
* "cdxIconClear",
* "cdxIconTrash"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion includes/ResourceLoader/ResourceLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public function preloadModuleInfo( array $moduleNames, Context $context ) {
}
}

// Batched version of ResourceLoaderWikiModule::getTitleInfo
// Batched version of WikiModule::getTitleInfo
$dbr = wfGetDB( DB_REPLICA );
WikiModule::preloadTitleInfo( $context, $dbr, $moduleNames );

Expand Down
2 changes: 1 addition & 1 deletion includes/installer/WebInstallerOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function getCSS() {
] );
$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 ),
Expand Down
4 changes: 2 additions & 2 deletions load.php
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 85892ed

Please sign in to comment.