* Object passed around to modules which contains information about the state
* of a specific loader request.
*/
-class ResourceLoaderContext {
+class ResourceLoaderContext implements MessageLocalizer {
protected $resourceLoader;
protected $request;
protected $logger;
* Get a Message object with context set. See wfMessage for parameters.
*
* @since 1.27
+ * @param string|string[]|MessageSpecifier $key Message key, or array of keys,
+ * or a MessageSpecifier.
* @param mixed ...
* @return Message
*/
- public function msg() {
+ public function msg( $key ) {
return call_user_func_array( 'wfMessage', func_get_args() )
->inLanguage( $this->getLanguage() )
// Use a dummy title because there is no real title