mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
Fix command line installer
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user