Translations:Manual:RequestContext.php/5/en

You can access the main request context using  however this should be a last resort. Most cases where you plan to do something with request context data should have access to its own context data, you should use that, not the main RequestContext instance or $wg globals.