php-dt.ApiClientFactory.php.mustache Maven / Gradle / Ivy
configKey = $configKey;
}
public function __invoke(ContainerInterface $container, $requestedName, array $options = null): ApiClient
{
$config = new OAGAC\ApiClientOptions(\array_merge($this->getServiceConfig($container), $options ?? []));
return new ApiClient(
$config->serverUrl,
$container->get($config->dataTransferServiceName),
$container->get($config->requestFactoryServiceName),
$container->get($config->httpClientServiceName),
$container->get($config->securityProviderFactoryServiceName),
$container->get($config->bodyCoderFactoryServiceName),
$container->get($config->bodyCoderFactoryServiceName),
$container->get($config->contentStrategyFactoryServiceName),
$container->get($config->contentValidatorFactoryServiceName)
);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy