false, true );
*/
$this->addOption( 'env-checks', "Run environment checks only, don't change anything" );
+
+ $this->addOption( 'with-extensions', "Detect and include extensions" );
+ $this->addOption( 'extensions', 'Comma-separated list of extensions to install',
+ false, true, false, true );
+ $this->addOption( 'skins', 'Comma-separated list of skins to install (default: all)',
+ false, true, false, true );
}
public function getDbType() {
$this->error( 'WARNING: You have provided the options "dbpass" and "dbpassfile". '
. 'The content of "dbpassfile" overrides "dbpass".' );
}
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$dbpass = file_get_contents( $dbpassfile ); // returns false on failure
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $dbpass === false ) {
- $this->error( "Couldn't open $dbpassfile", true );
+ $this->fatalError( "Couldn't open $dbpassfile" );
}
$this->mOptions['dbpass'] = trim( $dbpass, "\r\n" );
}
$this->error( 'WARNING: You have provided the options "pass" and "passfile". '
. 'The content of "passfile" overrides "pass".' );
}
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$pass = file_get_contents( $passfile ); // returns false on failure
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $pass === false ) {
- $this->error( "Couldn't open $passfile", true );
+ $this->fatalError( "Couldn't open $passfile" );
}
$this->mOptions['pass'] = trim( $pass, "\r\n" );
} elseif ( $this->getOption( 'pass' ) === null ) {
- $this->error( 'You need to provide the option "pass" or "passfile"', true );
+ $this->fatalError( 'You need to provide the option "pass" or "passfile"' );
}
}
}
}
-$maintClass = 'CommandLineInstaller';
+$maintClass = CommandLineInstaller::class;
require_once RUN_MAINTENANCE_IF_MAIN;