ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Manager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29
30class Manager implements ManagerInterface
31{
36
37 public function __construct(
42 ) {
43 $this->creation_repo = $creation_repo;
44 $this->reader = $reader;
45 $this->infos = $infos;
46 $this->actions = $actions;
47 }
48
52 public function getAllVocabularies(): \Generator
53 {
54 yield from $this->reader->vocabulariesForSlots(...SlotIdentifier::cases());
55 }
56
57 public function getVocabulary(string $vocab_id): VocabularyInterface
58 {
59 return $this->reader->vocabulary($vocab_id);
60 }
61
62 public function infos(): InfosInterface
63 {
64 return $this->infos;
65 }
66
67 public function actions(): ActionsInterface
68 {
69 return $this->actions;
70 }
71
73 {
75 }
76}
CreationRepositoryInterface $creation_repo
Definition: Manager.php:32
__construct(CreationRepositoryInterface $creation_repo, ReaderInterface $reader, InfosInterface $infos, ActionsInterface $actions)
Definition: Manager.php:37