27 private static function getOverrides() {
32 'LocalSettingsGenerator' => LocalSettingsGenerator::class,
33 'WebInstaller' => WebInstaller::class,
34 'CliInstaller' => CliInstaller::class,
36 foreach ( glob( MW_INSTALL_PATH .
'/mw-config/overrides/*.php' ) as
$file ) {
50 $className = self::getOverrides()[
'LocalSettingsGenerator'];
51 return new $className( $installer );
60 $className = self::getOverrides()[
'WebInstaller'];
61 return new $className( $request );
71 public static function getCliInstaller( $siteName, $admin =
null, array $options = [] ) {
72 $className = self::getOverrides()[
'CliInstaller'];
73 return new $className( $siteName, $admin, $options );
static getCliInstaller( $siteName, $admin=null, array $options=[])
Instantiates and returns an instance of CliInstaller or its descendant classes.
static getWebInstaller(WebRequest $request)
Instantiates and returns an instance of WebInstaller or its descendant classes.
static getLocalSettingsGenerator(Installer $installer)
Instantiates and returns an instance of LocalSettingsGenerator or its descendant classes.
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.