X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FAutomaticInstallation.php;h=9d1e8506cc6887430ab8fae01517e109882e239a;hb=efe358c617d18740b63cd0dcb1ee23591fcb0e2d;hp=7db2cc3e70e08d4e27dd4ff23933f3ae805d9060;hpb=3282ce53894b624893ee2989747a59866ab4b137;p=friendica.git diff --git a/src/Core/Console/AutomaticInstallation.php b/src/Core/Console/AutomaticInstallation.php index 7db2cc3e70..9d1e8506cc 100644 --- a/src/Core/Console/AutomaticInstallation.php +++ b/src/Core/Console/AutomaticInstallation.php @@ -7,8 +7,6 @@ use Friendica\BaseObject; use Friendica\Core\Config; use Friendica\Core\Installer; use Friendica\Core\Theme; -use Friendica\Database\DBA; -use Friendica\Database\DBStructure; use RuntimeException; class AutomaticInstallation extends Console @@ -102,10 +100,10 @@ HELP; } } - $db_host = $a->getConfigValue('database', 'hostname'); - $db_user = $a->getConfigValue('database', 'username'); - $db_pass = $a->getConfigValue('database', 'password'); - $db_data = $a->getConfigValue('database', 'database'); + $db_host = $a->getConfigCache()->get('database', 'hostname'); + $db_user = $a->getConfigCache()->get('database', 'username'); + $db_pass = $a->getConfigCache()->get('database', 'password'); + $db_data = $a->getConfigCache()->get('database', 'database'); } else { // Creating config file $this->out("Creating config file...\n"); @@ -148,7 +146,7 @@ HELP; $installer->resetChecks(); - if (!$installer->checkDB($db_host, $db_user, $db_pass, $db_data)) { + if (!$installer->checkDB($a->getBasePath(), $a->getConfigCache(), $a->getProfiler(), $db_host, $db_user, $db_pass, $db_data)) { $errorMessage = $this->extractErrors($installer->getChecks()); throw new RuntimeException($errorMessage); } @@ -160,7 +158,7 @@ HELP; $installer->resetChecks(); - if (!$installer->installDatabase()) { + if (!$installer->installDatabase($a->getBasePath())) { $errorMessage = $this->extractErrors($installer->getChecks()); throw new RuntimeException($errorMessage); }