ClientOptions
class ClientOptions
Methods
__construct()
ClientOptions constructor.
static ClientOptions
create()
No description
withDefaultLocale(string $locale)
No description
string|null
getDefaultLocale()
No description
usingDeliveryApi()
No description
usingPreviewApi()
No description
withHost(string $host)
No description
string
getHost()
No description
withCache(CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)
No description
CacheItemPoolInterface
getCacheItemPool()
No description
bool
hasCacheAutoWarmup()
No description
bool
hasCacheContent()
No description
withLogger(LoggerInterface $logger)
Configure the Client to use any PSR-3 compatible logger.
LoggerInterface
getLogger()
No description
withHttpClient(Client $client)
No description
Client
getHttpClient()
No description
Details
at line 60
__construct()
ClientOptions constructor.
at line 70
static ClientOptions
create()
at line 80
ClientOptions
withDefaultLocale(string $locale)
at line 90
string|null
getDefaultLocale()
at line 98
ClientOptions
usingDeliveryApi()
at line 108
ClientOptions
usingPreviewApi()
at line 120
ClientOptions
withHost(string $host)
at line 134
string
getHost()
at line 146
ClientOptions
withCache(CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)
at line 161
CacheItemPoolInterface
getCacheItemPool()
at line 169
bool
hasCacheAutoWarmup()
at line 177
bool
hasCacheContent()
at line 189
ClientOptions
withLogger(LoggerInterface $logger)
Configure the Client to use any PSR-3 compatible logger.