Skip to content

Commit 7b898e2

Browse files
Region Support
1 parent 22624ee commit 7b898e2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html>
22
<head>
3-
<title>Built.io Contentstack PHP SDK</title>
3+
<title>Contentstack PHP SDK</title>
44
</head>
55
<body>
66
<h1>Welcome to Contentstack PHP SDK</h1>

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)