wiki.techinc.nl/includes/ResourceLoader
Timo Tijhof e446a71f86 ResourceLoader: Switch Resources.php to MW_INSTALL_PATH
Follows-up Ib4caa80bb700, which introduced MW_INSTALL_PATH as
alternative to $IP, but also introduced $wgBaseDirectory.

Its not clear to me whether we actually want/need $wgBaseDirectory
long-term as it introduces significant complexity for a distinction
that remains theoretical, not enforced, and lacking a use case.

But, at least here we don't need it as these all explicitly reference
files that are in the source tree. Mocking the path differently would
fail the tests.

There are some individual methods (OutputPage, used via SkinModule)
that do not make assumptions on file paths and work with any file
paths at runtime. Those indeed need $wgBaseDirectory for DI and
testability.

Change-Id: I56c28d36e2d7bbf7ec5a8f2f5ae99b291e7ee4e8
2023-07-31 13:00:27 +02:00
..
dependencystore Replace IDatabase::delete with DeleteQueryBuilder 2023-06-21 17:50:31 +02:00
Hook Drop more unused hard deprecated hooks 2022-12-01 03:36:48 +01:00
CircularDependencyError.php ResourceLoader: tweak comments and error messages 2023-04-03 18:21:30 +10:00
ClientHtml.php ResourceLoader: Simplify and clean up ClientHtml nonce passing 2023-07-18 15:35:50 +01:00
CodexModule.php Create separate ResourceLoader modules for Codex styles 2023-04-05 15:29:39 -04:00
Context.php qunit: Enable debug=2 by default for SpecialJavaScriptTest 2023-02-21 21:59:23 +00:00
DerivativeContext.php Revert "Reorg: Move some of request related classes to MediaWiki/Request" 2022-10-27 13:14:16 +00:00
FileModule.php ResourceLoader: Switch Resources.php to MW_INSTALL_PATH 2023-07-31 13:00:27 +02:00
FilePath.php ResourceLoader: Allow FileModule scripts to be generated with a callback 2023-05-09 11:47:40 +10:00
ForeignApiModule.php
ForeignResourceManager.php foreign-resources.yaml: Add doc-only type 2023-05-03 19:33:04 +00:00
HookRunner.php Move some hooks to ResourceLoader\HookRunner 2023-05-11 20:51:19 +02:00
Image.php Replace array_keys in foreach to use $_ as value instead 2023-07-10 02:53:52 +00:00
ImageModule.php ResourceLoaderImageModule::getCssDeclarations: Tweak doc explanation 2023-07-13 10:28:13 -04:00
LessVarFileModule.php Migrate use of ${var}-style string interpolation 2022-07-29 02:45:09 +02:00
MessageBlobStore.php ResourceLoader: Clean up PHP 7.2 hacks 2022-11-17 09:51:33 +00:00
Module.php ResourceLoader: Factor out the loop body of makeModuleResponse() 2023-07-24 18:22:20 +10:00
MwUrlModule.php
OOUIFileModule.php
OOUIIconPackModule.php Replace array_keys in foreach to use $_ as value instead 2023-07-10 02:53:52 +00:00
OOUIImageModule.php Replace substr with cleaner string methods 2023-05-20 15:40:21 +02:00
OOUIModule.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
ResourceLoader.php ResourceLoader: Factor out the loop body of makeModuleResponse() 2023-07-24 18:22:20 +10:00
SiteModule.php Fix even more PHPStorm inspections (#3) 2023-03-25 00:30:15 +00:00
SiteStylesModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
SkinModule.php Add a config to stop shipping the legacy media styles 2023-07-12 18:32:31 -04:00
StartUpModule.php Deprecate use of targets 2023-06-16 15:16:07 -07:00
UserModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
UserOptionsModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
UserStylesModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
VueComponentParser.php Respond to some messages from Phan on PHP 8.1 2022-11-03 16:25:43 +11:00
WikiModule.php Database: support passing an IReadableDatabase to getCacheSetOptions 2023-06-09 10:46:03 +03:00