Skip to content

Commit 6d90af9

Browse files
Region Support
1 parent b0d703d commit 6d90af9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/models/contentstackregion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
namespace Contentstack\Contentstackregion;
66

77
// Domain relevant constants
8-
define('Europe', 'eu');
8+
define('EU', 'eu');
99
define('US', 'us');

src/lib/models/stack.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Stack {
3232
public function __construct($api_key = '', $access_token = '', $environment = '', $region = '') {
3333

3434

35-
if($region && $region =="Europe") {
36-
$this->host = Europe.'-'.HOST ;
35+
if($region && $region =="EU") {
36+
$this->host = EU.'-'.HOST;
3737
}
3838
$this->header = Utility\validateInput('stack', array('api_key' => $api_key, 'access_token' => $access_token, 'environment' => $environment, 'region' => $region));
3939
$this->environment = $this->header['environment'];

0 commit comments

Comments
 (0)