File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2222 "require" : {
2323 "php" : " >=8.0" ,
2424 "guzzlehttp/guzzle" : " ^7" ,
25- "launchdarkly/server-sdk" : " ^5.1 " ,
25+ "launchdarkly/server-sdk" : " ^6.2 " ,
2626 "myclabs/php-enum" : " >1.8" ,
2727 "open-feature/sdk" : " ^2.0"
2828 },
Original file line number Diff line number Diff line change 77 "include-v-in-tag" : false ,
88 "include-component-in-tag" : false ,
99 "extra-files" : [
10- " .github/actions/build-docs/action.yml"
10+ " .github/actions/build-docs/action.yml" ,
11+ " src/Provider.php" ,
1112 ]
1213 }
1314 }
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ class Provider implements OpenFeatureProvider
2727 private EvaluationContextConverter $ contextConverter ;
2828 private ResolutionDetailsConverter $ detailsConverter ;
2929
30+ const VERSION = '0.1.0 ' ; // x-release-please-version
31+
3032 /**
3133 * Instantiate a new instance of this provider, backed by the provided LDClient instance.
3234 *
@@ -36,6 +38,9 @@ class Provider implements OpenFeatureProvider
3638 */
3739 public function __construct (string $ sdkKey , array $ options = [])
3840 {
41+ $ options ['wrapper_name ' ] = 'open-feature-php-server ' ;
42+ $ options ['wrapper_version ' ] = self ::VERSION ;
43+
3944 $ this ->client = new LDClient ($ sdkKey , $ options );
4045 $ this ->contextConverter = new EvaluationContextConverter ($ options ['logger ' ] ?? new NullLogger ());
4146 $ this ->detailsConverter = new ResolutionDetailsConverter ();
You can’t perform that action at this time.
0 commit comments