|
| | __construct (Closure $create_provide, Closure $create_wiring, ?array $consumer_classes=null) |
| |
| | all (string $name) |
| |
| | get (string $name, string $key) |
| |
Definition at line 25 of file Internal.php.
◆ __construct()
| ILIAS\LegalDocuments\Internal::__construct |
( |
Closure |
$create_provide, |
|
|
Closure |
$create_wiring, |
|
|
?array |
$consumer_classes = null |
|
) |
| |
- Parameters
-
| Closure(string) | Provide $create_provide |
| Closure(string) | Wiring $create_wiring |
| null|list<class-string> | $consumer_classes |
Definition at line 35 of file Internal.php.
37 $lens = fn($consumer) => $consumer->uses($create_wiring($consumer->id()),
new LazyProvide(fn() => $create_provide($consumer->id())));
38 $this->map = array_reduce(
39 $consumer_classes ?? require self::path(),
40 fn(
$map, $consumer) =>
$map->append($lens(
new $consumer())->map()),
◆ all()
| ILIAS\LegalDocuments\Internal::all |
( |
string |
$name | ) |
|
Definition at line 45 of file Internal.php.
47 return $this->map[$name] ?? [];
◆ get()
| ILIAS\LegalDocuments\Internal::get |
( |
string |
$name, |
|
|
string |
$key |
|
) |
| |
◆ path()
| static ILIAS\LegalDocuments\Internal::path |
( |
| ) |
|
|
static |
◆ $map
| readonly array ILIAS\LegalDocuments\Internal::$map |
|
private |
The documentation for this class was generated from the following file: