11 return hash(
"sha256", implode(
"-", [
13 $this->config->getHost(),
14 $this->config->getPort(),
15 $this->config->getDatabase()
21 return "The database is created on the server.";
32 new \ilDatabaseServerIsConnectableObjective($this->config)
40 $db->initFromIniFile(
$c->toMockIniFile());
42 $connect = $db->connect(
true);
48 if (!$db->createDatabase(
$c->getDatabase(),
"utf8",
$c->getCollation())) {
49 throw new Setup\UnachievableException(
50 "Database cannot be created." achieve(Setup\Environment $environment)
static getWrapper($a_type)
getPreconditions(Setup\Environment $environment)
An environment holds resources to be used in the setup process.