/**
  * Do the import.
  */
 public function execute()
 {
     $file = $this->getArg(0);
     $importer = new SiteImporter(SiteSQLStore::newInstance());
     $importer->setExceptionCallback(array($this, 'reportException'));
     $importer->importFromFile($file);
     $this->output("Done.\n");
 }
Beispiel #2
0
 /**
  * Do the import.
  */
 public function execute()
 {
     $file = $this->getArg(0);
     $siteStore = \MediaWiki\MediaWikiServices::getInstance()->getSiteStore();
     $importer = new SiteImporter($siteStore);
     $importer->setExceptionCallback([$this, 'reportException']);
     $importer->importFromFile($file);
     $this->output("Done.\n");
 }