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
Details
at line 65
__construct()
ClientOptions constructor.
at line 75
static ClientOptions
create()
at line 85
ClientOptions
withDefaultLocale(string $locale)
at line 95
string|null
getDefaultLocale()
at line 103
ClientOptions
usingDeliveryApi()
at line 113
ClientOptions
usingPreviewApi()
at line 125
ClientOptions
withHost(string $host)
at line 139
string
getHost()
at line 151
ClientOptions
withCache(CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)
at line 166
CacheItemPoolInterface
getCacheItemPool()
at line 174
bool
hasCacheAutoWarmup()
at line 182
bool
hasCacheContent()
at line 194
ClientOptions
withLogger(LoggerInterface $logger)
Configure the Client to use any PSR-3 compatible logger.
at line 204
LoggerInterface
getLogger()
at line 214
ClientOptions
withHttpClient(Client $client)
at line 224
Client
getHttpClient()
at line 235
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 250
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.