ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BuildExportOptionsMapObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup\Artifact\BuildArtifactObjective as ilBuildArtifactObjective;
25use ILIAS\Setup\Artifact\ArrayArtifact as ilSetupArrayArtifact;
26use ILIAS\Setup\ImplementationOfInterfaceFinder as ilSetupImplementationOfInterfaceFinder;
29
30class BuildExportOptionsMapObjective extends ilBuildArtifactObjective
31{
32 public function getArtifactName(): string
33 {
34 return "export_artifact";
35 }
36
37 public function build(): ilSetupArtifact
38 {
39 $class_names = [];
40 $finder = new ilSetupImplementationOfInterfaceFinder();
41 $infos['export_options'] = iterator_to_array($finder->getMatchingClassNames(ExportOptionInterface::class));
42 $infos['export_configs'] = iterator_to_array($finder->getMatchingClassNames(ExportConfigInterface::class));
43 return new ilSetupArrayArtifact($infos);
44 }
45}
getArtifactName()
Get the filename where the builder wants to put its artifact.
An array as an artifact.
This is an objective to build some artifact.