-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathClientOptions.php
More file actions
86 lines (71 loc) · 2.45 KB
/
ClientOptions.php
File metadata and controls
86 lines (71 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
declare(strict_types=1);
namespace ConfigCat;
/**
* Contains the configuration options of the \ConfigCat\ConfigCatClient.
*/
final class ClientOptions
{
/**
* The base ConfigCat CDN url.
*/
public const BASE_URL = 'base-url';
/**
* A \Psr\Log\LoggerInterface implementation used for logging.
*/
public const LOGGER = 'logger';
/**
* Default: Warning. Sets the internal log level.
*/
public const LOG_LEVEL = 'log-level';
/**
* A \ConfigCat\ConfigCache implementation used for caching.
*/
public const CACHE = 'cache';
/**
* Array of exception classes that should be ignored from logs.
*/
public const EXCEPTIONS_TO_IGNORE = 'exceptions-to-ignore';
/**
* Sets how frequent the cached configuration should be refreshed in seconds.
*/
public const CACHE_REFRESH_INTERVAL = 'cache-refresh-interval';
/**
* Additional options for Guzzle http requests.
* https://docs.guzzlephp.org/en/stable/request-options.html.
*
* @deprecated use \ConfigCat\ClientOptions::FETCH_CLIENT option instead with \ConfigCat\Http\GuzzleFetchClient::create()
*/
public const REQUEST_OPTIONS = 'request-options';
/**
* A custom callable Guzzle http handler.
*
* @deprecated use \ConfigCat\ClientOptions::FETCH_CLIENT option instead with \ConfigCat\Http\GuzzleFetchClient::create()
*/
public const CUSTOM_HANDLER = 'custom-handler';
/**
* A \ConfigCat\Http\FetchClientInterface implementation that wraps an actual HTTP client used
* to make HTTP requests towards ConfigCat.
* When it's not set, \ConfigCat\Http\GuzzleFetchClient is used by default.
*/
public const FETCH_CLIENT = 'fetch-client';
/**
* Default: Global. Set this parameter to be in sync with the Data Governance
* preference on the Dashboard: https://app.configcat.com/organization/data-governance
* (Only Organization Admins can access).
*/
public const DATA_GOVERNANCE = 'data-governance';
/**
* A \ConfigCat\Override\OverrideDataSource implementation used to override
* feature flags & settings.
*/
public const FLAG_OVERRIDES = 'flag-overrides';
/**
* A \ConfigCat\User as default user.
*/
public const DEFAULT_USER = 'default-user';
/**
* Default: false. Indicates whether the SDK should be initialized in offline mode or not.
*/
public const OFFLINE = 'offline';
}