Skip to content

Commit 8a5ef6e

Browse files
authored
Merge pull request #37 from launchdarkly/dr/v2ForReal
switch back to getting /flags instead of /latest-flags
2 parents 392cefc + 5a5fb3e commit 8a5ef6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LaunchDarkly/GuzzleFeatureRequester.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class GuzzleFeatureRequester implements FeatureRequester
1212
{
13-
const SDK_LATEST_FLAGS = "/sdk/latest-flags";
13+
const SDK_FLAGS = "/sdk/flags";
1414
/** @var Client */
1515
private $_client;
1616
/** @var string */
@@ -49,7 +49,7 @@ function __construct($baseUri, $sdkKey, $options)
4949
public function get($key)
5050
{
5151
try {
52-
$uri = $this->_baseUri . self::SDK_LATEST_FLAGS . "/" . $key;
52+
$uri = $this->_baseUri . self::SDK_FLAGS . "/" . $key;
5353
$response = $this->_client->get($uri, $this->_defaults);
5454
$body = $response->getBody();
5555
return FeatureFlag::decode(json_decode($body, true));
@@ -67,7 +67,7 @@ public function get($key)
6767
*/
6868
public function getAll() {
6969
try {
70-
$uri = $this->_baseUri . self::SDK_LATEST_FLAGS;
70+
$uri = $this->_baseUri . self::SDK_FLAGS;
7171
$response = $this->_client->get($uri, $this->_defaults);
7272
$body = $response->getBody();
7373
return array_map(FeatureFlag::getDecoder(), json_decode($body, true));

0 commit comments

Comments
 (0)