ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
Services.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 use ILIAS\MetaData\Structure\Services\Services as StructureServices;
29 
30 class Services
31 {
34 
35  protected StructureServices $structure_services;
36 
37  public function __construct(
38  StructureServices $structure_services
39  ) {
40  $this->structure_services = $structure_services;
41  }
42 
43  public function pathFactory(): FactoryInterface
44  {
45  if (isset($this->path_factory)) {
46  return $this->path_factory;
47  }
48  return $this->path_factory = new Factory(
49  $this->structure_services->structure()
50  );
51  }
52 
54  {
55  if (isset($this->navigator_factory)) {
57  }
58  return $this->navigator_factory = new NavigatorFactory(
59  new NavigatorBridge()
60  );
61  }
62 }
StructureServices $structure_services
Definition: Services.php:35
NavigatorFactoryInterface $navigator_factory
Definition: Services.php:33
__construct(StructureServices $structure_services)
Definition: Services.php:37