See discussion in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/OAuth/+/748784/, it would be good if hooks that want to add a variable depending on the current WebRequest state could access it without relying on global state.
See https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikimediaEvents/+/280468 (now removed) and https://gerrit.wikimedia.org/g/mediawiki/extensions/MobileApp/+/adf1dc44c4b3879fc516cb1b2c71077ddf95df1d/includes/MobileAppHooks.php#63 as examples that use $wgRequest directly.