1<?
php declare(strict_types=1);
 
   23        return hash(
"sha256", self::class);
 
   31        return "Module- and Servicedefinitions are stored. Events are initialized.";
 
   47        $config = $environment->getConfigFor(
'database');
 
   49            new \ilDatabaseUpdatedObjective(
$config, $this->populate_before)
 
   58        $ilias_path = __DIR__ . 
"/../../../..";
 
   60        $db = $environment->
getResource(Setup\Environment::RESOURCE_DATABASE);
 
   61        $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
 
   62        $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
 
   74        $GLOBALS[
"DIC"][
"ilObjDataCache"] = 
null;
 
   75        $GLOBALS[
"DIC"][
"lng"] = 
new class() {
 
   76            public function loadLanguageModule()
 
   80        $GLOBALS[
"DIC"][
"ilLog"] = 
new class() {
 
   81            public function write()
 
   84            public function debug()
 
   88        $GLOBALS[
"DIC"][
"ilLoggerFactory"] = 
new class() {
 
   89            public function getRootLogger()
 
   92                    public function write()
 
   97            public function getLogger()
 
  100                    public function write()
 
  106        if (!defined(
"ILIAS_LOG_ENABLED")) {
 
  107            define(
"ILIAS_LOG_ENABLED", 
false);
 
  109        if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
 
  110            define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
 
  113        $mr = new \ilModuleReader(
"", 
"", 
"", $db);
 
  117        foreach ($modules as $module) {
 
  119                $ilias_path . 
"/Modules/" . $module[
"subdir"] . 
"/module.xml",
 
  128        $sr = new \ilServiceReader(
"", 
"", 
"", $db);
 
  133                $ilias_path . 
"/Services/" . 
$service[
"subdir"] . 
"/service.xml",
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
__construct(bool $populate_before=true)
static getAvailableCoreModules()
Get all available core modules.
static getAvailableCoreServices()
Get all available core services.
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An objective is a desired state of the system that is supposed to be created by the setup.