ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Services.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 use ILIAS\MetaData\Paths\Services\Services as PathServices;
26 use ILIAS\MetaData\Structure\Services\Services as StructureServices;
30 
31 class Services
32 {
34 
35 
36  protected PathServices $path_services;
37  protected StructureServices $structure_services;
38 
39  public function __construct(
40  PathServices $path_services,
41  StructureServices $structure_services
42  ) {
43  $this->path_services = $path_services;
44  $this->structure_services = $structure_services;
45  }
46 
48  {
49  if (isset($this->vocabularies)) {
50  return $this->vocabularies;
51  }
52  return $this->vocabularies = new LOMVocabularies(
54  new Factory(),
55  new TagFactory(),
56  $this->path_services->pathFactory(),
57  $this->path_services->navigatorFactory(),
58  $this->structure_services->structure()
59  ),
60  $this->path_services->navigatorFactory()
61  );
62  }
63 }
__construct(PathServices $path_services, StructureServices $structure_services)
Definition: Services.php:39