All Downloads are FREE. Search and download functionalities are using the official Maven repository.

php-dt-modern.ApiClientFactory.php.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
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