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()

Return Value

ClientOptions

at line 80
ClientOptions withDefaultLocale(string $locale)

Parameters

string $locale

Return Value

ClientOptions

at line 90
string|null getDefaultLocale()

Return Value

string|null

at line 98
ClientOptions usingDeliveryApi()

Return Value

ClientOptions

at line 108
ClientOptions usingPreviewApi()

Return Value

ClientOptions

at line 120
ClientOptions withHost(string $host)

Parameters

string $host

Return Value

ClientOptions

at line 134
string getHost()

Return Value

string

at line 146
ClientOptions withCache(CacheItemPoolInterface $cacheItemPool, bool $autoWarmup = \false, bool $cacheContent = \false)

Parameters

CacheItemPoolInterface $cacheItemPool
bool $autoWarmup
bool $cacheContent

Return Value

ClientOptions

at line 161
CacheItemPoolInterface getCacheItemPool()

Return Value

CacheItemPoolInterface

at line 169
bool hasCacheAutoWarmup()

Return Value

bool

at line 177
bool hasCacheContent()

Return Value

bool

at line 189
ClientOptions withLogger(LoggerInterface $logger)

Configure the Client to use any PSR-3 compatible logger.

Parameters

LoggerInterface $logger

Return Value

ClientOptions

at line 199
LoggerInterface getLogger()

Return Value

LoggerInterface

at line 209
ClientOptions withHttpClient(Client $client)

Parameters

Client $client

Return Value

ClientOptions

at line 219
Client getHttpClient()

Return Value

Client