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
Details
at line 70
__construct()
ClientOptions constructor.
at line 77
static
create()
at line 85
ClientOptions
withDefaultLocale(string $locale)
at line 95
string|null
getDefaultLocale()
at line 100
usingDeliveryApi()
at line 107
usingPreviewApi()
at line 114
withHost(string $host)
at line 125
getHost()
at line 130
withCache(CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = false, bool $cacheContent = false)
at line 142
getCacheItemPool()
at line 147
hasCacheAutoWarmup()
at line 152
hasCacheContent()
at line 160
withLogger(LoggerInterface $logger)
Configure the Client to use any PSR-3 compatible logger.
at line 167
getLogger()
at line 172
withHttpClient(Client $client)
at line 179
getHttpClient()
at line 190
ClientOptions
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 205
ClientOptions
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.