It seems the class doesn't load needed classes in construct so we get
Uncaught Error: Class 'MediaWiki\MediaWikiServices' not found
Bug: T193871
Change-Id: I0d6a49232cbc256a34ab49e8a4e41f6cc942fe4b
* @ingroup Maintenance
*/
class PopulateChangeTagDef extends Maintenance {
- /** @var Wikimedia\Rdbms\LBFactory */
+ /** @var Wikimedia\Rdbms\ILBFactory */
protected $lbFactory;
public function __construct() {
false,
true
);
- $this->lbFactory = MediaWiki\MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
}
public function execute() {
global $wgChangeTagsSchemaMigrationStage;
+ $this->lbFactory = MediaWiki\MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
$this->setBatchSize( $this->getOption( 'batch-size', $this->getBatchSize() ) );
$this->countDown( 5 );