1<?
php declare(strict_types=1);
23 return hash(
"sha256", self::class);
31 return "Module- and Servicedefinitions are stored. Events are initialized.";
48 new \ilDatabaseUpdatedObjective()
57 $ilias_path = __DIR__ .
"/../../../..";
59 $db = $environment->
getResource(Setup\Environment::RESOURCE_DATABASE);
60 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
61 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
71 $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
73 $GLOBALS[
"DIC"][
"ilObjDataCache"] =
null;
74 $GLOBALS[
"DIC"][
"lng"] =
new class() {
75 public function loadLanguageModule()
79 $GLOBALS[
"DIC"][
"ilLog"] =
new class() {
80 public function write()
83 public function debug()
87 $GLOBALS[
"DIC"][
"ilLoggerFactory"] =
new class() {
88 public function getRootLogger()
91 public function write()
96 public function getLogger()
99 public function write()
105 if (!defined(
"ILIAS_LOG_ENABLED")) {
106 define(
"ILIAS_LOG_ENABLED",
false);
108 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
109 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
112 $mr = new \ilModuleReader(
"",
"",
"", $db);
116 foreach ($modules as $module) {
118 $ilias_path .
"/Modules/" . $module[
"subdir"] .
"/module.xml",
127 $sr = new \ilServiceReader(
"",
"",
"", $db);
132 $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)
isApplicable(Setup\Environment $environment)
@inheritDoc
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...