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);
68 $GLOBALS[
"DIC"] =
new DI\Container();
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",
achieve(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isApplicable(Setup\Environment $environment)
static getAvailableCoreServices()
Get all available core services.
__construct(bool $populate_before=true)
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
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.
getPreconditions(Setup\Environment $environment)
static getAvailableCoreModules()
Get all available core modules.