19 declare(strict_types=1);
43 return hash(
"sha256", self::class);
51 return "Module- and Servicedefinitions are stored.";
68 new \ilDatabaseUpdatedObjective(),
70 new \ilSettingsFactoryExistsObjective(),
71 new \ilComponentRepositoryExistsObjective(),
72 new \ilComponentFactoryExistsObjective(),
81 $ilias_path = __DIR__ .
"/../../../..";
83 $db = $environment->getResource(
Setup\Environment::RESOURCE_DATABASE);
84 $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
85 $client_ini = $environment->getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
87 $component_repository = $environment->getResource(
Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
89 $component_factory = $environment->getResource(
Setup\Environment::RESOURCE_COMPONENT_FACTORY);
91 $settings_factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
98 $GLOBALS[
"DIC"] =
new DI\Container();
101 $GLOBALS[
"DIC"][
"ilClientIniFile"] = $client_ini;
104 $GLOBALS[
"DIC"][
"lng"] =
new class () {
105 public function loadLanguageModule():
void 109 $GLOBALS[
"DIC"][
"ilLog"] =
new class () {
110 public function write():
void 113 public function debug():
void 117 $GLOBALS[
"DIC"][
"ilLoggerFactory"] =
new class () {
118 public function getRootLogger()
120 return new class () {
121 public function write():
void 126 public function getLogger()
128 return new class () {
129 public function write():
void 135 if (!defined(
"ILIAS_LOG_ENABLED")) {
136 define(
"ILIAS_LOG_ENABLED",
false);
138 if (!defined(
"ILIAS_ABSOLUTE_PATH")) {
139 define(
"ILIAS_ABSOLUTE_PATH", dirname(__FILE__, 6));
142 $reader = new \ilComponentDefinitionReader(
149 $settings_factory->settingsFor(),
150 $component_repository,
155 new \ilSystemCheckDefinitionProcessor($db),
156 new \ilSecurePathDefinitionProcessor($db),
159 $reader->readComponentDefinitions();
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
isApplicable(Setup\Environment $environment)
__construct(bool $populate_before=true)
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)