$importer = new WikiImporter( $source, $this->getConfig() );
$importer->setRevisionCallback(
- array( $this, 'handleRevision' ) );
+ [ $this, 'handleRevision' ] );
+ $importer->setNoticeCallback( function ( $msg, $params ) {
+ echo wfMessage( $msg, $params )->text() . "\n";
+ } );
$importer->doImport();
}
}
-$maintClass = "DumpRenderer";
+$maintClass = DumpRenderer::class;
require_once RUN_MAINTENANCE_IF_MAIN;