Customizable MySQL implementation

Test Plan:
- /
- upgrade_schema.php
- Setup
- Try disabling mysql_connect.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D2133
This commit is contained in:
vrana
2012-04-06 21:29:19 -07:00
parent 34ca4a9ba7
commit d4c5761f41
10 changed files with 34 additions and 24 deletions

View File

@@ -83,12 +83,15 @@ if ($uri->getPort()) {
$conn_bare_hostname = $conn_host;
}
$conn = new AphrontMySQLDatabaseConnection(
$conn = PhabricatorEnv::newObjectFromConfig(
'mysql.implementation',
array(
'user' => $conn_user,
'pass' => $conn_pass,
'host' => $conn_host,
'database' => null,
array(
'user' => $conn_user,
'pass' => $conn_pass,
'host' => $conn_host,
'database' => null,
),
));
try {