19 declare(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(),
78 public function achieve(Setup\
Environment $environment): Setup\Environment
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,
154 new \ilObjectDefinitionProcessor($db),
155 new \ilPDFGenerationDefinitionProcessor($db),
156 new \ilSystemCheckDefinitionProcessor($db),
157 new \ilSecurePathDefinitionProcessor($db),
160 $reader->readComponentDefinitions();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isApplicable(Setup\Environment $environment)
__construct(bool $populate_before=true)
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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.
getPreconditions(Setup\Environment $environment)