54 : self
55 {
57 $dic[
'request_data_collector'] =
static fn(
$c): RequestDataCollector =>
58 new RequestDataCollector(
62 );
63 $dic[
'question.repo.suggestedsolutions'] =
static fn(
$c): SuggestedSolutionsDatabaseRepository =>
64 new SuggestedSolutionsDatabaseRepository(
$DIC[
'ilDB']);
65 $dic[
'question.general_properties.repository'] =
static fn(
$c): GeneralQuestionPropertiesRepository =>
66 new GeneralQuestionPropertiesRepository(
68 $DIC[
'component.factory'],
69 $DIC[
'component.repository']
70 );
71 $dic[
'question_files'] = fn(
$c): QuestionFiles =>
72 new QuestionFiles();
73
74 $dic[
'participant_repository'] =
static fn(
$c): ParticipantRepository =>
75 new ParticipantRepository(
$DIC[
'ilDB']);
76 $dic[
'global_test_settings'] =
static fn(
$c): GlobalTestSettings =>
77 (new GlobalTestSettingsRepository(
$DIC[
'ilSetting'], new \
ilSetting(
'assessment')))->getGlobalSettings();
78
79 $dic[
'exportimport.logging'] =
static fn(
$c): LoggingProvider =>
80 new LoggingProvider();
81 $dic[
'exportimport.transformations_builder'] =
static fn(
$c): TransformationsBuilder =>
82 new TransformationsBuilder(
$DIC);
83 $dic[
'exportimport.export_context_holder'] =
static fn(
$c): ExportContextHolder =>
84 new ExportContextHolder();
85 $dic[
'exportimport.exporter'] =
static fn(
$c): QuestionPoolExporter =>
86 new QuestionPoolExporter(
87 $c[
'exportimport.transformations_builder'],
88 new DataFactory(),
89 $c[
'question.general_properties.repository'],
91 $DIC->taxonomy()->domain()
92 );
93
94 $dic[
'exportimport.session'] =
static fn(
$c): ImportSessionRepository =>
95 new ImportSessionRepository('qpl');
96 $dic[
'exportimport.skill_assignments_importer'] =
static fn(
$c): SkillAssignmentsImporter =>
97 new SkillAssignmentsImporter(
98 $c[
'exportimport.logging'](),
99 $DIC->skills()->internal()->repo()->getTreeRepo(),
100 $DIC->skills()->usage(),
101 'components/ILIAS/TestQuestionPool',
103 );
104 $dic[
'exportimport.questions_importer'] =
static fn(
$c): QuestionsImporter =>
105 new QuestionsImporter(
106 'components/ILIAS/TestQuestionPool',
107 'qpl',
111 $c[
'exportimport.logging'](),
112 $DIC->fileConverters()->images(),
114 );
115 $dic[
'exportimport.importer'] =
static fn(
$c): QuestionPoolImporter =>
116 new QuestionPoolImporter(
117 $c[
'exportimport.transformations_builder'],
118 $c[
'exportimport.logging'](),
119 new DataFactory(),
120 $c[
'exportimport.questions_importer'],
121 $c[
'exportimport.skill_assignments_importer']
122 );
123
125 }
static http()
Fetches the global http state from ILIAS.