20 protected \ilFileSystemSetupConfig
$config;
30 return hash(
"sha256", self::class);
35 return "ILIAS directories are created";
48 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
50 $web_dir = dirname(__DIR__, 4) .
"/data";
57 new Setup\Objective\DirectoryCreatedObjective(
$data_dir),
58 new Setup\Objective\DirectoryCreatedObjective($web_dir),
59 new Setup\Objective\DirectoryCreatedObjective(
62 new Setup\Objective\DirectoryCreatedObjective(
70 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
72 $ini->setVariable(
"clients",
"datadir", $this->config->getDataDir());
75 throw new Setup\UnachievableException(
"Could not write ilias.ini.php");
86 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
88 return $ini->readVariable(
"clients",
"datadir") !== $this->config->getDataDir();
__construct(\ilFileSystemSetupConfig $config)
ilFileSystemSetupConfig $config
isApplicable(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
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.
achieve(Setup\Environment $environment)