Fix command line installer

This commit is contained in:
Romain Neutron
2012-10-04 17:23:59 +02:00
parent 5c87e7bc3b
commit 00c21edf30

View File

@@ -153,11 +153,10 @@ class Install extends Command
return $abConn; return $abConn;
} }
private function getDBConn(InputInterface $input, OutputInterface $output, DialogHelper $dialog) private function getDBConn(InputInterface $input, OutputInterface $output, \connection_pdo $abConn, DialogHelper $dialog)
{ {
/** $credentials = $abConn->get_credentials();
* TODO NEUTRON, can not work
*/
$dbConn = null; $dbConn = null;
if (!$input->getOption('databox')) { if (!$input->getOption('databox')) {
do { do {
@@ -166,7 +165,7 @@ class Install extends Command
if ($dbName) { if ($dbName) {
try { try {
$dbConn = new \connection_pdo('databox', $hostname, $port, $dbUser, $dbPassword, $dbName, array(), $this->container['debug']); $dbConn = new \connection_pdo('databox', $credentials['hostname'], $credentials['port'], $credentials['user'], $credentials['password'], $dbName, array(), $this->container['debug']);
$output->writeln("\n\t<info>Data-Box : Connection successful !</info>\n"); $output->writeln("\n\t<info>Data-Box : Connection successful !</info>\n");
do { do {