19 declare(strict_types=1);
29 private readonly array
$map;
38 $lens = fn($consumer) => $consumer->uses($create_wiring($consumer->id()),
new LazyProvide(fn() => $create_provide($consumer->id())));
39 $this->map = array_reduce(
41 fn($map, $consumer) => $map->append($lens(
new $consumer())->map()),
46 public function all(
string $name): array
48 return $this->map[$name] ?? [];
51 public function get(
string $name,
string $key)
53 return $this->map[$name][$key] ??
null;
__construct(Closure $create_provide, Closure $create_wiring, ?array $consumer_classes=null)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null