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
* Support for private user attributes
* Stop retrying HTTP requests if the API key has been invalidated.
* User bucketing supports integer attributes. Thanks @mlund01!
* Source code complies with the PSR-2 standard. Thanks @valerianpereira!
* Fix PSR-4 autoloading. Thanks @jenssegers!
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,18 @@
2
2
3
3
All notable changes to the LaunchDarkly PHP SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
4
4
5
+
## [2.4.0] - 2018-01-04
6
+
### Added
7
+
- Support for [private user attributes](https://docs.launchdarkly.com/docs/private-user-attributes).
8
+
9
+
### Changed
10
+
- Stop retrying HTTP requests if the API key has been invalidated.
11
+
- User bucketing supports integer attributes. Thanks @mlund01!
12
+
- Source code complies with the PSR-2 standard. Thanks @valerianpereira!
13
+
14
+
### Fixed
15
+
- The PSR-4 autoloading specification is now correct. Thanks @jenssegers!
16
+
5
17
## [2.3.0] - 2017-10-06
6
18
### Added
7
19
- New `flush` method forces events to be published to the LaunchDarkly service. This can be useful if `LDClient` is not automatically destroyed at the end of a request. Thanks @foxted!
* - feature_requester_class: An optional class implementing LaunchDarkly\FeatureRequester, if `feature_requester` is not specified. Defaults to GuzzleFeatureRequester.
51
58
* - event_publisher: An optional LaunchDarkly\EventPublisher instance.
52
59
* - event_publisher_class: An optional class implementing LaunchDarkly\EventPublisher, if `event_publisher` is not specified. Defaults to CurlEventPublisher.
60
+
* - all_attributes_private: True if no user attributes (other than the key) should be sent back to LaunchDarkly. By default, this is false.
61
+
* - 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-38Lines changed: 8 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ class LDUser
19
19
protected$_lastName = null;
20
20
protected$_anonyomus = false;
21
21
protected$_custom = array();
22
+
protected$_privateAttributeNames = array();
22
23
23
24
/**
24
25
* @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.
@@ -33,7 +34,7 @@ class LDUser
33
34
* @param boolean|null $anonymous Whether this is an anonymous user
34
35
* @param array|null $custom Other custom attributes that can be used to create custom rules
0 commit comments