Background
VirtualRESTService was deprecated and has been removed from MediaWiki core since Oct 2023 (see T338921 and subtasks).
Despite MediaWiki no longer declaring or recognising $wgVirtualRestConfig, we still set in wmf-config. And while that would ideally be just an unused setting that we can safely remove, other code has begun to rely on it for some indirect purposes. The good news is that (afaik) none of these actually end up making requests to it in a way that expects anything from RESTBase. The bad news is, there are piles of hacks that start and end without thinking about RESTBase, but somewhere in the middle, rely on the complex array structure behind $wgVirtualRestConfig as currently set in prouduction, which makes the code hard to understand, hard to test/debug locally, and hard to change.
Scope
- Math extension: reads VirtualRestConfig. T349582#12113039
- Collection extension: reads VirtualRestConfig.
- MediaWiki core Setup.php: writes wgVirtualRestConfig.
- wmf-config: writes wgVirtualRestConfig.