use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
+use Wikimedia\Rdbms\LBFactory;
/**
* Abstract maintenance class for quickly writing and churning out
* Add the default parameters to the scripts
*/
protected function addDefaultParams() {
-
# Generic (non script dependant) options:
$this->addOption( 'help', 'Display this help message', false, false, 'h' );
*/
public function getConfig() {
if ( $this->config === null ) {
- $this->config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' );
+ $this->config = MediaWikiServices::getInstance()->getMainConfig();
}
return $this->config;
. "for this script to run: $joined. Please enable them and then try again.";
$this->error( $msg, 1 );
}
-
}
/**