Skip to content

Commit

Permalink
Setup: 37755, add missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
klees committed Sep 13, 2023
1 parent 125ebbf commit 7c4b299
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ protected function initEnvironment(Setup\Environment $environment): array
$plugin_admin = $environment->getResource(Setup\Environment::RESOURCE_PLUGIN_ADMIN);
$ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
$client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
$component_repository = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
$component_factory = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_FACTORY);

// ATTENTION: This is a total abomination. It only exists to allow various
Expand All @@ -131,6 +132,8 @@ protected function initEnvironment(Setup\Environment $environment): array
$ORIG_ilDB = $GLOBALS["ilDB"];

$GLOBALS["DIC"] = new DI\Container();
$GLOBALS["DIC"]["component.repository"] = $component_repository;
$GLOBALS["DIC"]["component.factory"] = $component_factory;
$GLOBALS["DIC"]["ilDB"] = $db;
$GLOBALS["ilDB"] = $db;
$GLOBALS["DIC"]["ilIliasIniFile"] = $ini;
Expand Down Expand Up @@ -243,7 +246,6 @@ public function raise($a_component, $a_event, $a_parameter = ""): void
};
$GLOBALS["DIC"]["ilObjDataCache"] = new ilObjectDataCache();
$GLOBALS["DIC"]["ilSetting"] = new ilSetting();
$GLOBALS["DIC"]["component.factory"] = $component_factory;
$GLOBALS["DIC"]["objDefinition"] = new ilObjectDefinition();
$GLOBALS["DIC"]["rbacadmin"] = new class () extends ilRbacAdmin {
public function __construct()
Expand Down

0 comments on commit 7c4b299

Please sign in to comment.