Ejemplo 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());
     }
 }
Ejemplo n.º 2
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);
 }