Skip to content

Commit 4cd5e61

Browse files
committed
Cron: initialisation
1 parent f7aa237 commit 4cd5e61

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

components/ILIAS/Init/Init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public function init(
120120
$pull[\ILIAS\UI\Implementation\Component\Progress\Factory::class],
121121
$pull[\ILIAS\UI\Implementation\Component\Progress\State\Factory::class],
122122
$pull[\ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory::class],
123+
$pull[\ILIAS\Cron\Registry::class],
123124
);
124125
}
125126
}

components/ILIAS/Init/classes/class.ilInitialisation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,14 @@ protected static function initCron(\ILIAS\DI\Container $c): void
762762
{
763763
$c['cron.repository'] = static function (\ILIAS\DI\Container $c): ilCronJobRepository {
764764
return new ilCronJobRepositoryImpl(
765+
$c['cron.registry'],
765766
$c->database(),
766767
$c->settings(),
767768
$c->logger()->cron(),
768769
$c['component.repository'],
769770
$c['component.factory'],
770-
$c['lng']
771+
$c['lng'],
772+
$c['ilLoggerFactory']
771773
);
772774
};
773775

components/ILIAS/Init/src/AllModernComponents.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function __construct(
9191
protected \ILIAS\UI\Implementation\Component\Progress\Factory $ui_progress_factory,
9292
protected \ILIAS\UI\Implementation\Component\Progress\State\Factory $ui_progress_state_factory,
9393
protected \ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory $ui_progress_state_bar_factory,
94+
protected \ILIAS\Cron\Registry $cron_registry,
9495
) {
9596
}
9697

@@ -165,6 +166,8 @@ protected function populateComponentsInLegacyEnvironment(\Pimple\Container $DIC)
165166
$DIC['ui.factory.input.field'] = fn() => $this->ui_factory_input_field;
166167
$DIC['ui.factory'] = fn() => $this->ui_factory;
167168
$DIC['ui.renderer'] = fn() => $this->ui_renderer;
169+
170+
$DIC['cron.registry'] = fn() => $this->cron_registry;
168171
}
169172

170173
public function getName(): string

0 commit comments

Comments
 (0)