35 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
37 $client_ini->setVariable(
"db",
"type", $this->config->getType());
38 $client_ini->setVariable(
"db",
"host", $this->config->getHost());
39 $client_ini->setVariable(
"db",
"name", $this->config->getDatabase());
40 $client_ini->setVariable(
"db",
"user", $this->config->getUser());
41 $client_ini->setVariable(
"db",
"port", $this->config->getPort() ??
"");
42 $pw = $this->config->getPassword();
43 $client_ini->setVariable(
"db",
"pass", $pw ? $pw->toString() :
"");
45 if (!$client_ini->write()) {
46 throw new Setup\UnachievableException(
"Could not write client.ini.php");