19declare(strict_types=1);
27 $pw = $this->config->getPassword();
28 return hash(
"sha256", implode(
"-", [
30 $this->config->getHost(),
31 $this->config->getPort(),
32 $this->config->getUser(),
33 $pw !==
null ? $pw->toString() :
""
39 return "The database server is connectable with the supplied configuration.";
55 $db->initFromIniFile($this->config->toMockIniFile());
57 $connect = $db->connect();
58 }
catch (PDOException
$e) {
61 if (
$e->getCode() !== 1049) {
69 "Database cannot be reached. Please check the credentials."
Signals that some goal won't be achievable by actions of the system ever.
static getWrapper(string $a_type)
isApplicable(Setup\Environment $environment)
@inheritDoc
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
An environment holds resources to be used in the setup process.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...