You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/LaunchDarkly/LDClient.php
+36-5Lines changed: 36 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@
5
5
useMonolog\Logger;
6
6
usePsr\Log\LoggerInterface;
7
7
8
+
/**
9
+
* Used internally.
10
+
*/
11
+
class InvalidSDKKeyException extends \Exception
12
+
{
13
+
}
14
+
8
15
/**
9
16
* A client for the LaunchDarkly API.
10
17
*/
@@ -49,6 +56,8 @@ class LDClient {
49
56
* - feature_requester_class: An optional class implementing LaunchDarkly\FeatureRequester, if `feature_requester` is not specified. Defaults to GuzzleFeatureRequester.
50
57
* - event_publisher: An optional LaunchDarkly\EventPublisher instance.
51
58
* - event_publisher_class: An optional class implementing LaunchDarkly\EventPublisher, if `event_publisher` is not specified. Defaults to CurlEventPublisher.
59
+
* - all_attributes_private: True if no user attributes (other than the key) should be sent back to LaunchDarkly. By default, this is false.
60
+
* - private_attribute_names: An optional array of user attribute names to be marked private. Any users sent to LaunchDarkly with this configuration active will have attributes with these names removed. You can also set private attributes on a per-user basis in LDUserBuilder.
Copy file name to clipboardExpand all lines: src/LaunchDarkly/LDUser.php
+8-37Lines changed: 8 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ class LDUser {
18
18
protected$_lastName = null;
19
19
protected$_anonyomus = false;
20
20
protected$_custom = array();
21
+
protected$_privateAttributeNames = array();
21
22
22
23
/**
23
24
* @param string $key Unique key for the user. For authenticated users, this may be a username or e-mail address. For anonymous users, this could be an IP address or session ID.
@@ -32,7 +33,8 @@ class LDUser {
32
33
* @param boolean|null $anonymous Whether this is an anonymous user
33
34
* @param array|null $custom Other custom attributes that can be used to create custom rules
0 commit comments