ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
InternalServices.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\DI\Container as GlobalContainer;
25use ILIAS\MetaData\Structure\Services\Services as StructureServices;
26use ILIAS\MetaData\Vocabularies\Services\Services as VocabulariesServices;
27use ILIAS\MetaData\Repository\Services\Services as RepositoryServices;
28use ILIAS\MetaData\Editor\Services\Services as EditorServices;
29use ILIAS\MetaData\Manipulator\Services\Services as ManipulatorServices;
30use ILIAS\MetaData\Copyright\Services\Services as CopyrightServices;
31use ILIAS\MetaData\DataHelper\Services\Services as DataHelperServices;
32use ILIAS\MetaData\Presentation\Services\Services as PresentationServices;
34use ILIAS\MetaData\OERHarvester\Services\Services as OERHarvesterServices;
35use ILIAS\MetaData\Search\Services\Services as SearchServices;
36use ILIAS\MetaData\OERExposer\Services\Services as OERExposerServices;
37
39{
40 protected GlobalContainer $dic;
41 protected PathServices $path_services;
42 protected StructureServices $structure_services;
43 protected DataHelperServices $data_helper_services;
44 protected PresentationServices $presentation_services;
45 protected RepositoryServices $repository_services;
46 protected VocabulariesServices $vocabularies_services;
47 protected EditorServices $editor_services;
48 protected ManipulatorServices $manipulator_services;
49 protected CopyrightServices $copyright_services;
50 protected XMLServices $xml_services;
51 protected OERHarvesterServices $oer_harvester_services;
52 protected SearchServices $search_services;
53 protected OERExposerServices $oer_exposer_services;
54
55 public function __construct(GlobalContainer $dic)
56 {
57 $this->dic = $dic;
58 $this->structure_services = new StructureServices();
59 $this->path_services = new PathServices(
60 $this->structure_services
61 );
62 $this->data_helper_services = new DataHelperServices();
63 $this->search_services = new SearchServices();
64 $this->manipulator_services = new ManipulatorServices(
65 $this->path_services,
66 $this->structure_services
67 );
68 $this->copyright_services = new CopyrightServices(
69 $this->dic,
70 $this->search_services,
71 $this->path_services
72 );
73 $this->vocabularies_services = new VocabulariesServices(
74 $this->dic,
75 $this->path_services,
76 $this->structure_services,
77 $this->copyright_services
78 );
79 $this->presentation_services = new PresentationServices(
80 $this->dic,
81 $this->data_helper_services,
82 $this->vocabularies_services
83 );
84 $this->repository_services = new RepositoryServices(
85 $this->dic,
86 $this->path_services,
87 $this->structure_services,
88 $this->vocabularies_services,
89 $this->data_helper_services,
90 $this->manipulator_services
91 );
92 $this->xml_services = new XMLServices(
93 $this->dic,
94 $this->path_services,
95 $this->structure_services,
96 $this->manipulator_services,
97 $this->copyright_services
98 );
99 $this->oer_harvester_services = new OERHarvesterServices(
100 $this->dic,
101 $this->presentation_services,
102 $this->copyright_services,
103 $this->path_services,
104 $this->repository_services,
105 $this->xml_services
106 );
107 $this->oer_exposer_services = new OERExposerServices(
108 $this->dic,
109 $this->oer_harvester_services
110 );
111 $this->editor_services = new EditorServices(
112 $this->dic,
113 $this->path_services,
114 $this->structure_services,
115 $this->repository_services,
116 $this->manipulator_services,
117 $this->presentation_services,
118 $this->vocabularies_services,
119 $this->data_helper_services,
120 $this->copyright_services,
121 $this->oer_harvester_services
122 );
123 }
124
125 public function dic(): GlobalContainer
126 {
127 return $this->dic;
128 }
129
130 public function paths(): PathServices
131 {
133 }
134
135 public function structure(): StructureServices
136 {
138 }
139
140 public function dataHelper(): DataHelperServices
141 {
143 }
144
145 public function presentation(): PresentationServices
146 {
148 }
149
150 public function repository(): RepositoryServices
151 {
153 }
154
155 public function vocabularies(): VocabulariesServices
156 {
158 }
159
160 public function editor(): EditorServices
161 {
163 }
164
165 public function manipulator(): ManipulatorServices
166 {
168 }
169
170 public function copyright(): CopyrightServices
171 {
173 }
174
175 public function xml(): XMLServices
176 {
177 return $this->xml_services;
178 }
179
180 public function OERHarvester(): OERHarvesterServices
181 {
183 }
184
185 public function search(): SearchServices
186 {
188 }
189
190 public function OERExposer(): OERExposerServices
191 {
193 }
194}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36