19declare(strict_types=1);
44 return hash(
"sha256", self::class);
49 return "The ilias.ini.php and client.ini.php are loaded";
59 if (self::$might_populate_ini_files_as_well) {
73 $client_id = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_ID);
76 "To initialize the ini-files, we need a client id, but it does not " .
77 "exist in the environment."
81 if ($environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI) ==
null) {
82 $path = dirname(__DIR__, 4) .
"/ilias.ini.php";
85 $environment = $environment
86 ->withResource(
Setup\Environment::RESOURCE_ILIAS_INI,
$ini);
89 if ($environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI) ==
null) {
93 $environment = $environment
94 ->withResource(
Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
105 $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
106 $client_ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
108 return is_null(
$ini) || is_null($client_ini);
113 return dirname(__DIR__, 4) .
"/public/data/$client_id";
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.
INIFile Parser Early access in init proceess! Avoid further dependencies like logging or other servic...
isApplicable(Setup\Environment $environment)
@inheritDoc
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
static bool $might_populate_ini_files_as_well
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...