MediaWiki  master
MediaWiki\ResourceLoader\Context72Hack Class Reference

PHP 7.2 hack to work around the issue described at https://phabricator.wikimedia.org/T166010#5962098 Load the Context class when ResourceLoader is loaded. More...

Inheritance diagram for MediaWiki\ResourceLoader\Context72Hack:
Collaboration diagram for MediaWiki\ResourceLoader\Context72Hack:

Additional Inherited Members

- Public Member Functions inherited from MediaWiki\ResourceLoader\Context
 __construct (ResourceLoader $resourceLoader, WebRequest $request)
 
 encodeJson ( $data)
 Wrapper around json_encode that avoids needless escapes, and pretty-prints in debug mode. More...
 
 getConfig ()
 
 getContentOverrideCallback ()
 Return the replaced-content mapping callback. More...
 
 getDebug ()
 
 getDirection ()
 
 getFormat ()
 
 getHash ()
 All factors that uniquely identify this request, except 'modules'. More...
 
 getImage ()
 
 getImageObj ()
 If this is a request for an image, get the Image object. More...
 
 getLanguage ()
 
 getLogger ()
 
 getModules ()
 
 getOnly ()
 
 getRaw ()
 
 getReqBase ()
 Get the request base parameters, omitting any defaults. More...
 
 getRequest ()
 
 getResourceLoader ()
 
 getSkin ()
 
 getUser ()
 
 getUserIdentity ()
 Get the possibly-cached UserIdentity object for the specified username. More...
 
 getUserObj ()
 Get the possibly-cached User object for the specified username. More...
 
 getVariant ()
 
 getVersion ()
 
 msg ( $key,... $params)
 Get a Message object with context set. More...
 
 shouldIncludeMessages ()
 
 shouldIncludeScripts ()
 
 shouldIncludeStyles ()
 
- Static Public Member Functions inherited from MediaWiki\ResourceLoader\Context
static debugFromString (?string $debug)
 
static newDummyContext ()
 Return a dummy Context object suitable for passing into things that don't "really" need a context. More...
 
- Public Attributes inherited from MediaWiki\ResourceLoader\Context
const DEBUG_LEGACY = 1
 
const DEBUG_OFF = 0
 
const DEFAULT_LANG = 'qqx'
 
const DEFAULT_SKIN = 'fallback'
 
- Protected Attributes inherited from MediaWiki\ResourceLoader\Context
int $debug
 
string null $direction
 
string null $format
 
string null $hash
 
string null $image
 
Image false $imageObj
 
string $language
 
LoggerInterface $logger
 
string[] $modules
 
string null $only
 
bool $raw
 
WebRequest $request
 
ResourceLoader $resourceLoader
 
string $skin
 
string null $user
 
UserIdentity null false $userIdentity = false
 
User null $userObj
 
string null $variant
 
string null $version
 

Detailed Description

PHP 7.2 hack to work around the issue described at https://phabricator.wikimedia.org/T166010#5962098 Load the Context class when ResourceLoader is loaded.

phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound phpcs:disable MediaWiki.Files.ClassMatchesFilename.NotMatch

Definition at line 89 of file ResourceLoader.php.


The documentation for this class was generated from the following file: