Skip to content

Commit

Permalink
feat: add support to force rest endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioturdo committed Dec 9, 2024
1 parent 02bbc97 commit 3ab3208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Braze.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class Braze

private bool $strictValidation = true;

public function __construct(ClientAdapterInterface $clientAdapter, string $apiKey, ?string $restEndpoint = null)
public function __construct(ClientAdapterInterface $clientAdapter, string $apiKey, ?string $restEndpoint = null, bool $forceRestEndpoint = false)
{
$this->client = new Client($clientAdapter, $apiKey, new Region($restEndpoint ?? Region::US01));
$this->client = new Client($clientAdapter, $apiKey, new Region($restEndpoint ?? Region::US01, $forceRestEndpoint));
}

public function getClient(): Client
Expand Down

0 comments on commit 3ab3208

Please sign in to comment.