@@ 206-221 (lines=16) @@ | ||
203 | }; |
|
204 | } |
|
205 | ||
206 | public function registerWidgetFactory(Container $container) |
|
207 | { |
|
208 | $this->registerLogger($container); |
|
209 | ||
210 | $container['widget/factory'] = function (Container $container) { |
|
211 | return new Factory([ |
|
212 | 'resolver_options' => [ |
|
213 | 'suffix' => 'Widget' |
|
214 | ], |
|
215 | 'arguments' => [[ |
|
216 | 'container' => $container, |
|
217 | 'logger' => $container['logger'] |
|
218 | ]] |
|
219 | ]); |
|
220 | }; |
|
221 | } |
|
222 | ||
223 | public function registerWidgetBuilder(Container $container) |
|
224 | { |
|
@@ 384-400 (lines=17) @@ | ||
381 | }; |
|
382 | } |
|
383 | ||
384 | public function registerSourceFactory(Container $container) |
|
385 | { |
|
386 | $this->registerLogger($container); |
|
387 | $this->registerDatabase($container); |
|
388 | ||
389 | $container['source/factory'] = function (Container $container) { |
|
390 | return new Factory([ |
|
391 | 'map' => [ |
|
392 | 'database' => DatabaseSource::class |
|
393 | ], |
|
394 | 'arguments' => [[ |
|
395 | 'logger' => $container['logger'], |
|
396 | 'pdo' => $container['database'] |
|
397 | ]] |
|
398 | ]); |
|
399 | }; |
|
400 | } |
|
401 | ||
402 | public function registerPropertyFactory(Container $container) |
|
403 | { |
|
@@ 424-440 (lines=17) @@ | ||
421 | }; |
|
422 | } |
|
423 | ||
424 | public function registerPropertyDisplayFactory(Container $container) |
|
425 | { |
|
426 | $this->registerDatabase($container); |
|
427 | $this->registerLogger($container); |
|
428 | ||
429 | $container['property/display/factory'] = function (Container $container) { |
|
430 | return new Factory([ |
|
431 | 'resolver_options' => [ |
|
432 | 'suffix' => 'Display' |
|
433 | ], |
|
434 | 'arguments' => [[ |
|
435 | 'container' => $container, |
|
436 | 'logger' => $container['logger'] |
|
437 | ]] |
|
438 | ]); |
|
439 | }; |
|
440 | } |
|
441 | ||
442 | ||
443 | public function registerModelFactory(Container $container) |