|
| createService (string $sourceName, string $entityType, array $args=[]) |
|
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\ServiceBySourceAndTypeDispatcher::__construct |
( |
string |
$type, |
|
|
array |
$callbacks |
|
) |
| |
- Parameters
-
string | $type | type of the dispatched services, i.e. type of the return value of the callbacks |
array[][] | $callbacks | map of entity source names and types to callbacks creating the service to be used |
◆ createService()
Wikibase\Lib\ServiceBySourceAndTypeDispatcher::createService |
( |
string |
$sourceName, |
|
|
string |
$entityType, |
|
|
array |
$args = [] |
|
) |
| |
|
private |
◆ getServiceForSourceAndType()
Wikibase\Lib\ServiceBySourceAndTypeDispatcher::getServiceForSourceAndType |
( |
string |
$sourceName, |
|
|
string |
$entityType, |
|
|
array |
$callbackArgs = [] |
|
) |
| |
◆ $callbacks
Wikibase\Lib\ServiceBySourceAndTypeDispatcher::$callbacks |
|
private |
◆ $services
Wikibase\Lib\ServiceBySourceAndTypeDispatcher::$services |
|
private |
◆ $serviceType
Wikibase\Lib\ServiceBySourceAndTypeDispatcher::$serviceType |
|
private |
The documentation for this class was generated from the following file: