* @param Config $config
* @throws Exception
*/
- function __construct( ImportSource $source, Config $config = null ) {
+ function __construct( ImportSource $source, Config $config ) {
if ( !class_exists( 'XMLReader' ) ) {
throw new Exception( 'Import requires PHP to have been compiled with libxml support' );
}
$this->reader = new XMLReader();
- if ( !$config ) {
- wfDeprecated( __METHOD__ . ' without a Config instance', '1.25' );
- $config = MediaWikiServices::getInstance()->getMainConfig();
- }
$this->config = $config;
if ( !in_array( 'uploadsource', stream_get_wrappers() ) ) {
/**
* Alternate per-revision callback, for debugging.
- * @param WikiRevision $revision
+ * @param WikiRevision &$revision
*/
public function debugRevisionHandler( &$revision ) {
$this->debug( "Got revision:" );