ILIAS  trunk Revision v11.0_alpha-2658-ge2404539063
Manager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 
30 class Manager implements ManagerInterface
31 {
36 
37  public function __construct(
38  CreationRepositoryInterface $creation_repo,
39  ReaderInterface $reader,
40  InfosInterface $infos,
41  ActionsInterface $actions
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  {
74  return $this->creation_repo;
75  }
76 }
__construct(CreationRepositoryInterface $creation_repo, ReaderInterface $reader, InfosInterface $infos, ActionsInterface $actions)
Definition: Manager.php:37
CreationRepositoryInterface $creation_repo
Definition: Manager.php:32