ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Services.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\MetaData\Paths\Services\Services as PathServices;
24 use ILIAS\MetaData\Structure\Services\Services as StructureServices;
34 
35 class Services
36 {
39 
40  protected PathServices $path_services;
41  protected StructureServices $structure_services;
42 
43  public function __construct(
44  PathServices $path_services,
45  StructureServices $structure_services
46  ) {
47  $this->path_services = $path_services;
48  $this->structure_services = $structure_services;
49  }
50 
51  public function manipulator(): ManipulatorInterface
52  {
53  if (isset($this->manipulator)) {
54  return $this->manipulator;
55  }
56  return $this->manipulator = new Manipulator(
57  $this->scaffoldProvider(),
58  new MarkerFactory(),
59  $this->path_services->navigatorFactory(),
60  $this->path_services->pathFactory(),
62  $this->path_services,
63  )
64  );
65  }
66 
68  {
69  if (isset($this->scaffold_provider)) {
71  }
72  return $this->scaffold_provider = new ScaffoldProvider(
73  new ScaffoldFactory(
74  new DataFactory(),
75  new RessourceIDFactory()
76  ),
77  $this->path_services->pathFactory(),
78  $this->path_services->navigatorFactory(),
79  $this->structure_services->structure()
80  );
81  }
82 }
ScaffoldProviderInterface $scaffold_provider
Definition: Services.php:38
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(PathServices $path_services, StructureServices $structure_services)
Definition: Services.php:43