Skip to content

Commit 64057c0

Browse files
committed
Cron: initialisation
1 parent 54596fe commit 64057c0

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
@@ -112,6 +112,7 @@ public function init(
112112
$pull[\ILIAS\UI\Implementation\Component\Progress\Factory::class],
113113
$pull[\ILIAS\UI\Implementation\Component\Progress\State\Factory::class],
114114
$pull[\ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory::class],
115+
$pull[\ILIAS\Cron\Registry::class],
115116
);
116117
}
117118
}

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
@@ -83,6 +83,7 @@ public function __construct(
8383
protected \ILIAS\UI\Component\Progress\Factory $ui_progress_factory,
8484
protected \ILIAS\UI\Component\Progress\State\Factory $ui_progress_state_factory,
8585
protected \ILIAS\UI\Component\Progress\State\Bar\Factory $ui_progress_state_bar_factory,
86+
protected \ILIAS\Cron\Registry $cron_registry,
8687
) {
8788
}
8889

@@ -149,6 +150,8 @@ protected function populateComponentsInLegacyEnvironment(\Pimple\Container $DIC)
149150
$DIC['ui.factory.input.field'] = fn() => $this->ui_factory_input_field;
150151
$DIC['ui.factory'] = fn() => $this->ui_factory;
151152
$DIC['ui.renderer'] = fn() => $this->ui_renderer;
153+
154+
$DIC['cron.registry'] = fn() => $this->cron_registry;
152155
}
153156

154157
public function getName(): string

0 commit comments

Comments
 (0)