use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IDatabase;
+use Wikimedia\Rdbms\IMaintainableDatabase;
require_once __DIR__ . '/../Maintenance.php';
public function __construct() {
parent::__construct();
- $this->mDescription = "Deletes local password for users.";
+ $this->addDescription( "Deletes local password for users." );
$this->setBatchSize( 1000 );
$this->addOption( 'user', 'If specified, only checks the given user', false, true );
/**
* Get the master DB handle for the current user batch. This is provided for the benefit
* of authentication extensions which subclass this and work with wiki farms.
+ * @return IMaintainableDatabase
*/
protected function getUserDB() {
return $this->getDB( DB_MASTER );