* @file
*/
-use Liuggio\StatsdClient\Factory\StatsdDataFactory;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use Wikimedia\ScopedCallback;
private static $instance = null;
/**
- * Set the Config object
- *
- * @param Config $c
+ * @param Config $config
*/
- public function setConfig( Config $c ) {
- $this->config = $c;
+ public function setConfig( Config $config ) {
+ $this->config = $config;
}
/**
- * Get the Config object
- *
* @return Config
*/
public function getConfig() {
# Validate $code
if ( !$code || !Language::isValidCode( $code ) || $code === 'qqq' ) {
- wfDebug( "Invalid user language code\n" );
$code = $wgLanguageCode;
}
return $this->skin;
}
- /** Helpful methods **/
-
/**
* Get a Message object with context set
* Parameters are the same as wfMessage()
return call_user_func_array( 'wfMessage', $args )->setContext( $this );
}
- /** Static methods **/
-
/**
* Get the RequestContext object associated with the main request
*