ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilGlobalScreenBuildProviderMapObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
32
37{
38 public function getArtifactName(): string
39 {
40 return "global_screen_providers";
41 }
42
43
44 public function build(): Artifact
45 {
46 $class_names = [];
47 $i = [
48 StaticMainMenuProvider::class,
49 StaticMetaBarProvider::class,
50 StaticFooterProvider::class,
51 DynamicToolProvider::class,
52 ModificationProvider::class,
53 NotificationProvider::class,
54 ToastProvider::class
55 ];
56
57 $finder = new ImplementationOfInterfaceFinder();
58 foreach ($i as $interface) {
59 $class_names[$interface] = iterator_to_array(
60 $finder->getMatchingClassNames($interface)
61 );
62 }
63
64 return new ArrayArtifact($class_names);
65 }
66}
An array as an artifact.
This is an objective to build some artifact.
getArtifactName()
Get the filename where the builder wants to put its 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