3 declare(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) {
    61                 new Setup\Objective\ClientIdReadObjective(),
    66                 new Setup\Objective\ClientIdReadObjective(),
    73         $client_id = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_ID);
    75             throw new Setup\UnachievableException(
    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";
 
static bool $might_populate_ini_files_as_well
 
isApplicable(Setup\Environment $environment)
 
achieve(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.