ClientOptions
class ClientOptions
Methods
ClientOptions constructor.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Configure the Client to use any PSR-3 compatible logger.
No description
No description
No description
Configures the client to use the default resource pool implementation, which may use more memory in extreme scenarios (tens of thousands of resources).
Configures the client to use a resource pool which will not cache entries and assets, which is useful when handling tens of thousand of resources, but it may cause extra API calls in normal scenarios.
No description
No description
No description
No description
No description
No description
Details
at line 80
__construct()
ClientOptions constructor.
at line 88
static
create()
at line 96
ClientOptions
withDefaultLocale(string $locale)
at line 106
string|null
getDefaultLocale()
at line 111
usingDeliveryApi()
at line 118
usingPreviewApi()
at line 125
withHost(string $host)
at line 136
getHost()
at line 141
withCache(CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = false, bool $cacheContent = false)
at line 153
getCacheItemPool()
at line 158
hasCacheAutoWarmup()
at line 163
hasCacheContent()
at line 171
withLogger(LoggerInterface $logger)
Configure the Client to use any PSR-3 compatible logger.
at line 178
getLogger()
at line 183
withHttpClient(Client $client)
at line 190
getHttpClient()
at line 199
withNormalResourcePool()
Configures the client to use the default resource pool implementation, which may use more memory in extreme scenarios (tens of thousands of resources).
at line 212
withLowMemoryResourcePool()
Configures the client to use a resource pool which will not cache entries and assets, which is useful when handling tens of thousand of resources, but it may cause extra API calls in normal scenarios.
Use this option only if the default resource pool is causing you memory errors.