wiki.techinc.nl/includes/installer
Ævar Arnfjörð Bjarmason 5d005d431a new-installer: Delay database object construction until ->execute time
My method of putting code that alters $this->parent->installSteps in
the MySQL constructor didn't work because the installer will construct
objects for all the databases, even those it doesn't use.

This ostensibly happens because it needs to be able to provide
defaults for all of them on the DBConnect page.

But when I was going to fix that by exiting the MySQL constructior by
checking $wgDBtype I found that it didn't work, because WebInstaller
calls Installer's __construct *before* any sessions are read or set
up, so $wgDBtype will always be mysql, since that's the default.

Fix that by delaying the construction of the database objects. The
WebInstaller (or equivalent) now has to call ->setupDatabaseObjects()
in its ->execute method. This way the defaults on the DBConnect will
still be provided, but we'll have access to session data in the
database constructors.

Ughed-by: Chad <innocentkiller@gmail.com>
2010-07-06 20:40:05 +00:00
..
CliInstaller.php * Eliminate CLIInstallerOutput per r68645 since, yes, it wasn't needed. 2010-07-02 21:15:13 +00:00
CliInstallerOutput.php * remove bogus outputFooter call 2010-06-29 02:46:11 +00:00
Installer.i18n.php Disable installer when LocalSettings.php is detected 2010-07-06 18:57:06 +00:00
Installer.php new-installer: Delay database object construction until ->execute time 2010-07-06 20:40:05 +00:00
InstallerDBType.php new-installer: A better implementation of the database user creation added in r69008 2010-07-04 21:25:16 +00:00
LocalSettingsGenerator.php LocalSettingsGenerator: Document $wgLanguageCode in the generated LocalSettings.php 2010-07-04 22:11:20 +00:00
MysqlInstaller.php new-installer: Delay database object construction until ->execute time 2010-07-06 20:40:05 +00:00
OracleInstaller.php
PostgresInstaller.php
SqliteInstaller.php * Eliminate CLIInstallerOutput per r68645 since, yes, it wasn't needed. 2010-07-02 21:15:13 +00:00
WebInstaller.php new-installer: Delay database object construction until ->execute time 2010-07-06 20:40:05 +00:00
WebInstallerOutput.php Installer is no longer hardcoded to xhtml doctype 2010-05-08 13:45:14 +00:00