wiki.techinc.nl/includes/ResourceLoader
Ty Hopp e2ce8c751e CodexModule: Throw helpful error if component not listed in module definition
This patch adds a runtime check to identify when a Codex component is imported without first being defined in the `codexComponents` array of the module definition file.

The currently shown warnings or errors are not consistent between components and are confusing since they occur at different points in the code paths of each component.

The proposed change throws a custom error message mentioning the component missing from the module definition. The location of the component's `require` call can also be inferred from the stack trace.

Bug: T353187
Change-Id: Iee8e3b0769c10407ce08de35ba38e8e5a804d6c9
2023-12-20 12:31:00 +08:00
..
dependencystore Migrate away from $db->makeList in favor of expression builder 2023-11-02 16:40:48 +00:00
Hook Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
CircularDependencyError.php
ClientHtml.php ResourceLoader: Document the clientPrefs system and make Skin option 2023-08-18 13:32:01 -07:00
CodexModule.php CodexModule: Throw helpful error if component not listed in module definition 2023-12-20 12:31:00 +08:00
Context.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
DerivativeContext.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
FileModule.php ResourceLoader/FileModule: Use callbackParam instead of callbackParams 2023-12-03 15:51:39 +00:00
FilePath.php
ForeignApiModule.php
ForeignResourceManager.php ForeignResourcesManager: Also support .zip releases 2023-09-20 23:11:10 +01:00
HookRunner.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
Image.php resourceloader: Always include 'lang' in ImageModule image URLs 2023-08-21 15:13:25 +02:00
ImageModule.php ResourceLoaderImageModule::getCssDeclarations: Tweak doc explanation 2023-07-13 10:28:13 -04:00
LessVarFileModule.php
MessageBlobStore.php Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
Module.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
MwUrlModule.php
OOUIFileModule.php
OOUIIconPackModule.php
OOUIImageModule.php
OOUIModule.php
ResourceLoader.php Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
SiteModule.php
SiteStylesModule.php
SkinModule.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
StartUpModule.php ResourceLoader: Bump STORAGE_VERSION 2023-10-03 10:58:00 -07:00
UserModule.php Namespace TitleValue under \MediaWiki\Title 2023-09-18 18:24:39 +01:00
UserOptionsModule.php Move user options related classes into its own namespace 2023-11-29 13:27:13 +01:00
UserStylesModule.php Namespace TitleValue under \MediaWiki\Title 2023-09-18 18:24:39 +01:00
VueComponentParser.php Bump codesniffer to 42.0.0 2023-09-27 15:06:32 -04:00
WikiModule.php Migrate off wfGetDB() in more places to ICP 2023-11-20 14:40:28 +01:00