- $importer = new SiteImporter( SiteSQLStore::newInstance() );
- $importer->setExceptionCallback( array( $this, 'reportException' ) );
+ $siteStore = \MediaWiki\MediaWikiServices::getInstance()->getSiteStore();
+ $importer = new SiteImporter( $siteStore );
+ $importer->setExceptionCallback( [ $this, 'reportException' ] );