ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilGlobalScreenBuildProviderMapObjective.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 use ILIAS\Setup;
28 
33 class ilGlobalScreenBuildProviderMapObjective extends Setup\Artifact\BuildArtifactObjective
34 {
35  public function getArtifactPath(): string
36  {
37  return "Services/GlobalScreen/artifacts/global_screen_providers.php";
38  }
39 
40  public function build(): Setup\Artifact
41  {
42  $class_names = [];
43  $i = [
44  StaticMainMenuProvider::class,
45  StaticMetaBarProvider::class,
46  DynamicToolProvider::class,
47  ModificationProvider::class,
48  NotificationProvider::class,
49  ToastProvider::class
50  ];
51 
52  $finder = new Setup\ImplementationOfInterfaceFinder();
53  foreach ($i as $interface) {
54  $class_names[$interface] = iterator_to_array(
55  $finder->getMatchingClassNames($interface)
56  );
57  }
58 
59  return new Setup\Artifact\ArrayArtifact($class_names);
60  }
61 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:27
$i
Definition: metadata.php:41