1 | <?php |
||
28 | class DiscoveryManagerProxy implements DiscoveryManager |
||
29 | { |
||
30 | /** |
||
31 | * @var Container |
||
32 | */ |
||
33 | private $puli; |
||
34 | |||
35 | /** |
||
36 | * Creates the proxy. |
||
37 | * |
||
38 | * @param Container $puli The service locator to fetch the actual discovery |
||
39 | * manager from |
||
40 | */ |
||
41 | public function __construct(Container $puli) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getContext() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function addRootTypeDescriptor(BindingTypeDescriptor $typeDescriptor, $flags = 0) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function removeRootTypeDescriptor($typeName) |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function removeRootTypeDescriptors(Expression $expr) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function clearRootTypeDescriptors() |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function getRootTypeDescriptor($typeName) |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function getRootTypeDescriptors() |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function findRootTypeDescriptors(Expression $expr) |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function hasRootTypeDescriptor($typeName) |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function hasRootTypeDescriptors(Expression $expr = null) |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function getTypeDescriptor($typeName, $moduleName) |
||
130 | { |
||
131 | return $this->puli->getDiscoveryManager()->getTypeDescriptor($typeName, $moduleName); |
||
132 | } |
||
133 | |||
134 | /** |
||
135 | * {@inheritdoc} |
||
136 | */ |
||
137 | public function getTypeDescriptors() |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function findTypeDescriptors(Expression $expr) |
||
149 | |||
150 | /** |
||
151 | * {@inheritdoc} |
||
152 | */ |
||
153 | public function hasTypeDescriptor($typeName, $moduleName = null) |
||
154 | { |
||
155 | return $this->puli->getDiscoveryManager()->hasTypeDescriptor($typeName, $moduleName); |
||
156 | } |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function hasTypeDescriptors(Expression $expr = null) |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | public function addRootBindingDescriptor(BindingDescriptor $bindingDescriptor, $flags = 0) |
||
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | public function removeRootBindingDescriptor(Uuid $uuid) |
||
181 | |||
182 | /** |
||
183 | * {@inheritdoc} |
||
184 | */ |
||
185 | public function removeRootBindingDescriptors(Expression $expr) |
||
189 | |||
190 | /** |
||
191 | * {@inheritdoc} |
||
192 | */ |
||
193 | public function clearRootBindingDescriptors() |
||
197 | |||
198 | /** |
||
199 | * {@inheritdoc} |
||
200 | */ |
||
201 | public function getRootBindingDescriptor(Uuid $uuid) |
||
205 | |||
206 | /** |
||
207 | * {@inheritdoc} |
||
208 | */ |
||
209 | public function getRootBindingDescriptors() |
||
213 | |||
214 | /** |
||
215 | * {@inheritdoc} |
||
216 | */ |
||
217 | public function findRootBindingDescriptors(Expression $expr) |
||
221 | |||
222 | /** |
||
223 | * {@inheritdoc} |
||
224 | */ |
||
225 | public function hasRootBindingDescriptor(Uuid $uuid) |
||
229 | |||
230 | /** |
||
231 | * {@inheritdoc} |
||
232 | */ |
||
233 | public function hasRootBindingDescriptors(Expression $expr = null) |
||
237 | |||
238 | /** |
||
239 | * {@inheritdoc} |
||
240 | */ |
||
241 | public function enableBindingDescriptor(Uuid $uuid) |
||
245 | |||
246 | /** |
||
247 | * {@inheritdoc} |
||
248 | */ |
||
249 | public function disableBindingDescriptor(Uuid $uuid) |
||
253 | |||
254 | /** |
||
255 | * {@inheritdoc} |
||
256 | */ |
||
257 | public function removeObsoleteDisabledBindingDescriptors() |
||
261 | |||
262 | /** |
||
263 | * {@inheritdoc} |
||
264 | */ |
||
265 | public function getBindingDescriptor(Uuid $uuid) |
||
269 | |||
270 | /** |
||
271 | * {@inheritdoc} |
||
272 | */ |
||
273 | public function getBindingDescriptors() |
||
277 | |||
278 | /** |
||
279 | * {@inheritdoc} |
||
280 | */ |
||
281 | public function findBindingDescriptors(Expression $expr) |
||
285 | |||
286 | /** |
||
287 | * {@inheritdoc} |
||
288 | */ |
||
289 | public function hasBindingDescriptor(Uuid $uuid) |
||
293 | |||
294 | /** |
||
295 | * {@inheritdoc} |
||
296 | */ |
||
297 | public function hasBindingDescriptors(Expression $expr = null) |
||
301 | |||
302 | /** |
||
303 | * {@inheritdoc} |
||
304 | */ |
||
305 | public function buildDiscovery() |
||
309 | |||
310 | /** |
||
311 | * {@inheritdoc} |
||
312 | */ |
||
313 | public function clearDiscovery() |
||
317 | } |
||
318 |