3 declare(strict_types=1);
    27         return hash(
"sha256", self::class);
    32         return "Fill ini with settings for Services/Database";
    53         $client_ini = $environment->
getResource(Setup\Environment::RESOURCE_CLIENT_INI);
    55         $type = $this->config->getType();
    57         if ($type === 
'postgres' || $type === 
'pdo-postgre') {
    58             throw new Setup\NotExecutableException(
'ILIAS 8 no longer Supports POSTGRES');
    61         $client_ini->setVariable(
"db", 
"type", $type);
    62         $client_ini->setVariable(
"db", 
"host", $this->config->getHost());
    63         $client_ini->setVariable(
"db", 
"name", $this->config->getDatabase());
    64         $client_ini->setVariable(
"db", 
"user", $this->config->getUser());
    65         $client_ini->setVariable(
"db", 
"port", (
string) ($this->config->getPort() ?? 
""));
    66         $pw = $this->config->getPassword();
    67         $client_ini->setVariable(
"db", 
"pass", $pw !== null ? $pw->toString() : 
"");
    69         if (!$client_ini->write()) {
    70             throw new Setup\UnachievableException(
"Could not write client.ini.php");
    78         $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
    80         $port = $this->config->getPort() ?? 
"";
    81         $pass = $this->config->getPassword() !== null ? $this->config->getPassword()->toString() : 
"";
    84             $client_ini->readVariable(
"db", 
"type") !== $this->config->getType() ||
    85             $client_ini->readVariable(
"db", 
"host") !== $this->config->getHost() ||
    86             $client_ini->readVariable(
"db", 
"name") !== $this->config->getDatabase() ||
    87             $client_ini->readVariable(
"db", 
"user") !== $this->config->getUser() ||
    88             $client_ini->readVariable(
"db", 
"port") !== $port ||
    89             $client_ini->readVariable(
"dv", 
"pass") !== $pass
 
achieve(Setup\Environment $environment)
 
getPreconditions(Setup\Environment $environment)
 
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An environment holds resources to be used in the setup process. 
 
isApplicable(Setup\Environment $environment)