Esempio n. 1
0
 private function setupDatabase(InstallationRequest $request)
 {
     $this->database->setup($request->getDbUser() ?: $this->config['DatabaseConfig']['user'], $request->getDbPassword() ?: $this->config['DatabaseConfig']['pass'], $request->getDbName(), $request->getDbHost() ?: $this->config['DatabaseConfig']['host'], $request->getDbPort() ?: $this->config['DatabaseConfig']['port'] ?: 3306);
     $this->database->importReleaseInstallDeltas($request->getAbsoluteInstallDir());
     if ($request->getSkipAdminCreation() !== true) {
         $this->database->createAdmin($request->getAdminUsername(), $request->getAdminName(), $request->getAdminEmail(), $request->getAdminLocale(), $request->getAdminPassword());
     }
 }
Esempio n. 2
0
 /**
  * Run the database setup tool
  *
  * @param string $installDir
  * @param $database
  */
 private function setupDatabase($installDir, $database)
 {
     $this->database->setup($this->config['DatabaseConfig']['user'], $this->config['DatabaseConfig']['pass'], $database, $this->config['DatabaseConfig']['host'], $this->config['DatabaseConfig']['port'] ?: 3306);
     $this->database->runBuildScripts($installDir);
 }
Esempio n. 3
0
 /**
  * Setup the database
  *
  * @param InstallationRequest $request
  */
 private function setupDatabase(InstallationRequest $request)
 {
     $this->database->setup($this->config['DatabaseConfig']['user'], $this->config['DatabaseConfig']['pass'], $request->databaseName, $this->config['DatabaseConfig']['host']);
     $this->database->importReleaseInstallDeltas($request->installDir);
     $this->database->createAdmin($request->username, $request->name, $request->name, $request->language, $request->password);
 }