19declare(strict_types=1);
27 return hash(
"sha256", implode(
"-", [
29 $this->config->getHost(),
30 $this->config->getPort(),
31 $this->config->getDatabase()
37 return "The database exists on the server.";
51 new \ilDatabaseServerIsConnectableObjective($this->config)
53 if ($this->config->getCreateDatabase()) {
54 $preconditions[] = new \ilDatabaseCreatedObjective($this->config);
56 return $preconditions;
62 $db->initFromIniFile($this->config->toMockIniFile());
63 $connect = $db->connect(
true);
66 "Database cannot be connected. Please check the credentials."
70 return $environment->withResource(Setup\Environment::RESOURCE_DATABASE, $db);
Signals that some goal won't be achievable by actions of the system ever.
static getWrapper(string $a_type)
achieve(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
@inheritDoc
getPreconditions(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...