Skip to content

Commit

Permalink
chore: fix readme
Browse files Browse the repository at this point in the history
Signed-off-by: legoheld <dreckig@sandkasten>
  • Loading branch information
legoheld committed Nov 27, 2023
1 parent 3d3c412 commit 3c7d2f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions providers/Flipt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ $provider = new FliptProvider($host, $apiToken, $namespace);
OpenFeature::setProvider($provider);

// Now you can evaluate your feature flags as follows
$booleanFlagValue = OpenFeature::getBooleanValue('your-boolean-flag-key', false);
$stringFlagValue = OpenFeature::getStringValue('your-string-flag-key', 'default-value');
$integerFlagValue = OpenFeature::getIntegerValue('your-integer-flag-key', 0);
$floatFlagValue = OpenFeature::getFloatValue('your-float-flag-key', 0.0);
$objectFlagValue = OpenFeature::getObjectValue('your-object-flag-key', ['default' => 'value']);
$booleanFlagValue = OpenFeatureAPI::getInstance()->getClient()->getBooleanValue('your-boolean-flag-key', false);
$stringFlagValue = OpenFeatureAPI::getInstance()->getClient()->getStringValue('your-string-flag-key', 'default-value');
$integerFlagValue = OpenFeatureAPI::getInstance()->getClient()->getIntegerValue('your-integer-flag-key', 0);
$floatFlagValue = OpenFeatureAPI::getInstance()->getClient()->getFloatValue('your-float-flag-key', 0.0);
$objectFlagValue = OpenFeatureAPI::getInstance()->getClient()->getObjectValue('your-object-flag-key', ['default' => 'value']);
```

### Caching
Expand Down

0 comments on commit 3c7d2f6

Please sign in to comment.