public function execute() {
$file = $this->getArg( 0 );
- $importer = new SiteImporter( SiteSQLStore::newInstance() );
- $importer->setExceptionCallback( array( $this, 'reportException' ) );
+ $siteStore = \MediaWiki\MediaWikiServices::getInstance()->getSiteStore();
+ $importer = new SiteImporter( $siteStore );
+ $importer->setExceptionCallback( [ $this, 'reportException' ] );
$importer->importFromFile( $file );