28 return hash(
"sha256", self::class);
33 return "The ilias.ini.php and client.ini.php are loaded";
43 if (self::$might_populate_ini_files_as_well) {
57 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
60 "To initialize the ini-files, we need a client id, but it does not " .
61 "exist in the environment."
65 if ($environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI) ==
null) {
66 $path = dirname(__DIR__, 2) .
"/ilias.ini.php";
69 $environment = $environment
70 ->withResource(Setup\Environment::RESOURCE_ILIAS_INI,
$ini);
73 if ($environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI) ==
null) {
77 $environment = $environment
78 ->withResource(Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
89 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
90 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
92 return is_null(
$ini) || is_null($client_ini);
97 return dirname(__DIR__, 2) .
"/data/$client_id";
An exception for terminatinating execution or to throw for unit testing.
Read the client id of the installation from the data directory.
Signals that some goal won't be achievable by actions of the system ever.
isApplicable(Setup\Environment $environment)
@inheritDoc
achieve(Setup\Environment $environment)
static $might_populate_ini_files_as_well
getPreconditions(Setup\Environment $environment)
An environment holds resources to be used in the setup process.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...