forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
class.ilGlobalScreenBuildProviderMapObjective.php
61 lines (54 loc) · 1.9 KB
/
class.ilGlobalScreenBuildProviderMapObjective.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/
declare(strict_types=1);
use ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider;
use ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider;
use ILIAS\GlobalScreen\Scope\MetaBar\Provider\StaticMetaBarProvider;
use ILIAS\GlobalScreen\Scope\Notification\Provider\NotificationProvider;
use ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider;
use ILIAS\Setup;
use ILIAS\GlobalScreen\Scope\Toast\Provider\ToastProvider;
/**
* Class ilGSBootLoaderBuilder
* @package ILIAS\GlobalScreen\BootLoader
*/
class ilGlobalScreenBuildProviderMapObjective extends Setup\Artifact\BuildArtifactObjective
{
public function getArtifactPath(): string
{
return "Services/GlobalScreen/artifacts/global_screen_providers.php";
}
public function build(): Setup\Artifact
{
$class_names = [];
$i = [
StaticMainMenuProvider::class,
StaticMetaBarProvider::class,
DynamicToolProvider::class,
ModificationProvider::class,
NotificationProvider::class,
ToastProvider::class
];
$finder = new Setup\ImplementationOfInterfaceFinder();
foreach ($i as $interface) {
$class_names[$interface] = iterator_to_array(
$finder->getMatchingClassNames($interface)
);
}
return new Setup\Artifact\ArrayArtifact($class_names);
}
}