diff --git a/components/ILIAS/Survey/Setup/class.Agent.php b/components/ILIAS/Survey/Setup/class.Agent.php new file mode 100644 index 000000000000..0cb20375ec94 --- /dev/null +++ b/components/ILIAS/Survey/Setup/class.Agent.php @@ -0,0 +1,31 @@ + new Component\Resource\ComponentCSS($this, "survey.css"); + $contribute[\ILIAS\Setup\Agent::class] = static fn() => new \ILIAS\Survey\Setup\Agent( + $pull[\ILIAS\Refinery\Factory::class] + ); } } diff --git a/components/ILIAS/SurveyQuestionPool/Export/class.ilSurveyQuestionPoolExporter.php b/components/ILIAS/SurveyQuestionPool/Export/class.ilSurveyQuestionPoolExporter.php index 7a1f40c3d33c..ddcd384594af 100755 --- a/components/ILIAS/SurveyQuestionPool/Export/class.ilSurveyQuestionPoolExporter.php +++ b/components/ILIAS/SurveyQuestionPool/Export/class.ilSurveyQuestionPoolExporter.php @@ -45,7 +45,7 @@ public function getXmlExportTailDependencies( $dependencies = []; // service settings - $deps[] = [ + $dependencies[] = [ "component" => "components/ILIAS/ILIASObject", "entity" => "common", "ids" => $a_ids diff --git a/components/ILIAS/SurveyQuestionPool/Setup/class.Agent.php b/components/ILIAS/SurveyQuestionPool/Setup/class.Agent.php index 7635b7667289..61105f74bdad 100644 --- a/components/ILIAS/SurveyQuestionPool/Setup/class.Agent.php +++ b/components/ILIAS/SurveyQuestionPool/Setup/class.Agent.php @@ -31,6 +31,11 @@ public function getUpdateObjective(?Setup\Config $config = null): Setup\Objectiv return new \ilDatabaseUpdateStepsExecutedObjective(new SurveyQuestionPoolDBUpdateSteps()); } + public function getMigrations(): array + { + return [new InitLOMForSurveyQuestionPoolMigration()]; + } + public function getStatusObjective(Metrics\Storage $storage): Objective { return new \ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new SurveyQuestionPoolDBUpdateSteps()); diff --git a/components/ILIAS/SurveyQuestionPool/Setup/class.InitLOMForSurveyQuestionPoolMigration.php b/components/ILIAS/SurveyQuestionPool/Setup/class.InitLOMForSurveyQuestionPoolMigration.php new file mode 100644 index 000000000000..b2404c7cbeae --- /dev/null +++ b/components/ILIAS/SurveyQuestionPool/Setup/class.InitLOMForSurveyQuestionPoolMigration.php @@ -0,0 +1,36 @@ +