ILIAS  release_8 Revision v8.24
class.ilGlobalScreenBuildProviderMapObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26use ILIAS\Setup;
28
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
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}
An array as an artifact.
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:28
$i
Definition: metadata.php:41
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...