19declare(strict_types=1);
42 return hash(
"sha256", self::class);
50 return "Module- and Servicedefinitions are stored. Events are initialized.";
67 new \ilDatabaseUpdatedObjective(),
69 new \ilSettingsFactoryExistsObjective(),
70 new \ilComponentRepositoryExistsObjective(),
71 new \ilComponentFactoryExistsObjective(),
80 $ilias_path = __DIR__ .
"/../../../..";
82 $db = $environment->
getResource(Setup\Environment::RESOURCE_DATABASE);
83 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
84 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
86 $component_repository = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
88 $component_factory = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_FACTORY);
90 $settings_factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
97 $GLOBALS[
"DIC"] =
new DI\Container();
100 $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
102 $GLOBALS[
"DIC"][
"ilObjDataCache"] =
null;
103 $GLOBALS[
"DIC"][
"lng"] =
new class () {
104 public function loadLanguageModule(): void
108 $GLOBALS[
"DIC"][
"ilLog"] =
new class () {
109 public function write(): void
112 public function debug(): void
116 $GLOBALS[
"DIC"][
"ilLoggerFactory"] =
new class () {
117 public function getRootLogger()
119 return new class () {
120 public function write(): void
125 public function getLogger()
127 return new class () {
128 public function write(): void
134 if (!defined(
"ILIAS_LOG_ENABLED")) {
135 define(
"ILIAS_LOG_ENABLED",
false);
137 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
138 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 5));
141 $reader = new \ilComponentDefinitionReader(
149 $settings_factory->settingsFor(),
150 $component_repository,
160 $reader->readComponentDefinitions();
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
getPreconditions(Setup\Environment $environment)
__construct(bool $populate_before=true)
isApplicable(Setup\Environment $environment)
@inheritDoc
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...
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...
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...