ServiceFactory
in package
Class ServiceFactory.
Table of Contents
- $client : ClientInterface
- $serviceMap : array<string|int, ServiceInterface>
- __construct() : mixed
- getServicesByName() : array<string|int, mixed>
- registerService() : mixed
- createService() : ServiceInterface
Properties
$client
protected
ClientInterface
$client
$serviceMap
protected
array<string|int, ServiceInterface>
$serviceMap
= []
Methods
__construct()
public
__construct(ClientInterface $client) : mixed
Parameters
- $client : ClientInterface
Return values
mixed —getServicesByName()
public
getServicesByName(array<string|int, mixed> $serviceNames, array<string|int, mixed> $config) : array<string|int, mixed>
Parameters
- $serviceNames : array<string|int, mixed>
- $config : array<string|int, mixed>
Return values
array<string|int, mixed> —registerService()
public
registerService(string $name, ServiceInterface $service) : mixed
Parameters
- $name : string
- $service : ServiceInterface
Return values
mixed —createService()
protected
createService(string $serviceName, array<string|int, mixed> $config) : ServiceInterface
Parameters
- $serviceName : string
- $config : array<string|int, mixed>