SimpleClientFactory
in package
Class SimpleClientFactory
Tags
Table of Contents
Methods
- createClient() : Client
- Instantiates Client with provided URL and key.
- createWithCache() : Client
- Instantiates Client with provided URL, key and cache implementation.
- createWithCacheDir() : Client
- Instantiates Client with provided URL, key and cache directory.
Methods
createClient()
Instantiates Client with provided URL and key.
public
static createClient(string $apiUrl, string $apiKey) : Client
Parameters
- $apiUrl : string
- $apiKey : string
Tags
Return values
ClientcreateWithCache()
Instantiates Client with provided URL, key and cache implementation.
public
static createWithCache(string $apiUrl, string $apiKey, CacheItemPoolInterface $cache) : Client
Parameters
- $apiUrl : string
- $apiKey : string
- $cache : CacheItemPoolInterface
Tags
Return values
ClientcreateWithCacheDir()
Instantiates Client with provided URL, key and cache directory.
public
static createWithCacheDir(string $apiUrl, string $apiKey, string $cacheDir) : Client
Parameters
- $apiUrl : string
- $apiKey : string
- $cacheDir : string