19 declare(strict_types=1);
27 return hash(
"sha256", implode(
"-", [
29 $this->config->getHost(),
30 $this->config->getPort(),
31 $this->config->getDatabase()
37 return "The database is created on the server.";
51 new \ilDatabaseServerIsConnectableObjective($this->config)
59 $db->initFromIniFile(
$c->toMockIniFile());
61 if (!$db->createDatabase(
$c->getDatabase(),
"utf8",
$c->getCollation())) {
62 throw new Setup\UnachievableException(
63 "Database cannot be created." 77 $db->initFromIniFile(
$c->toMockIniFile());
79 $connect = $db->connect(
true);
isApplicable(Setup\Environment $environment)
achieve(Setup\Environment $environment)
ilDatabaseSetupConfig $config
getPreconditions(Setup\Environment $environment)
static getWrapper(string $a_type)
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.