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);
69 $GLOBALS[
"DIC"] =
new DI\Container();
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",
achieve(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.
An environment holds resources to be used in the setup process.
getPreconditions(Setup\Environment $environment)
static getAvailableCoreModules()
Get all available core modules.