ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
CollectUsernameProvidersObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
30 public function __construct(
31 private readonly array $contributions
32 ) {
33 }
34
35 public function getArtifactName(): string
36 {
37 return 'apache_auth_username_providers';
38 }
39
40 public function build(): Artifact
41 {
42 return new Artifact\ArrayArtifact(
43 array_map(
44 static fn(UsernameProvider $p): string => $p::class,
45 $this->contributions
46 )
47 );
48 }
49}
An array as an artifact.
This is an objective to build some 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