29 private static function getOverrides() {
34 'LocalSettingsGenerator' => LocalSettingsGenerator::class,
35 'WebInstaller' => WebInstaller::class,
36 'CliInstaller' => CliInstaller::class,
38 foreach ( glob( MW_INSTALL_PATH .
'/mw-config/overrides/*.php' ) as
$file ) {
52 $className = self::getOverrides()[
'LocalSettingsGenerator'];
53 return new $className( $installer );
62 $className = self::getOverrides()[
'WebInstaller'];
63 return new $className( $request );
73 public static function getCliInstaller( $siteName, $admin =
null, array $options = [] ) {
74 $className = self::getOverrides()[
'CliInstaller'];
75 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.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.