32 private static function getOverrides() {
37 'LocalSettingsGenerator' => LocalSettingsGenerator::class,
38 'WebInstaller' => WebInstaller::class,
39 'CliInstaller' => CliInstaller::class,
41 foreach ( glob( MW_INSTALL_PATH .
'/mw-config/overrides/*.php' ) as $file ) {
55 $className = self::getOverrides()[
'LocalSettingsGenerator'];
56 return new $className( $installer );
65 $className = self::getOverrides()[
'WebInstaller'];
66 return new $className( $request );
76 public static function getCliInstaller( $siteName, $admin =
null, array $options = [] ) {
77 $className = self::getOverrides()[
'CliInstaller'];
78 return new $className( $siteName, $admin, $options );