@@ -23,19 +23,19 @@ class Configuration implements FeatureDataStore
2323 const BUILD_ENDPOINT = 'https://build.bugsnag.com ' ;
2424
2525 /**
26- * The default endpoint for event notifications with InsightHub .
26+ * The secondary instance endpoint for event notifications.
2727 */
28- const HUB_NOTIFY_ENDPOINT = 'https://notify.insighthub .smartbear.com ' ;
28+ const SECONDARY_NOTIFY_ENDPOINT = 'https://notify.bugsnag .smartbear.com ' ;
2929
3030 /**
31- * The default endpoint for session tracking with InsightHub .
31+ * The secondary instance endpoint for session tracking.
3232 */
33- const HUB_SESSION_ENDPOINT = 'https://sessions.insighthub .smartbear.com ' ;
33+ const SECONDARY_SESSION_ENDPOINT = 'https://sessions.bugsnag .smartbear.com ' ;
3434
3535 /**
36- * The default endpoint for build notifications with InsightHub .
36+ * The secondary instance endpoint for build notifications.
3737 */
38- const HUB_BUILD_ENDPOINT = 'https://build.insighthub .smartbear.com ' ;
38+ const SECONDARY_BUILD_ENDPOINT = 'https://build.bugsnag .smartbear.com ' ;
3939
4040 /**
4141 * @var string
@@ -100,7 +100,7 @@ class Configuration implements FeatureDataStore
100100 */
101101 protected $ notifier = [
102102 'name ' => 'Bugsnag PHP (Official) ' ,
103- 'version ' => '3.30.0 ' ,
103+ 'version ' => '3.30.1 ' ,
104104 'url ' => 'https://bugsnag.com ' ,
105105 ];
106106
@@ -218,10 +218,10 @@ public function __construct($apiKey)
218218 }
219219 $ this ->apiKey = $ apiKey ;
220220
221- if ($ this ->isHubApiKey ()) {
222- $ this ->notifyEndpoint = self ::HUB_NOTIFY_ENDPOINT ;
223- $ this ->sessionEndpoint = self ::HUB_SESSION_ENDPOINT ;
224- $ this ->buildEndpoint = self ::HUB_BUILD_ENDPOINT ;
221+ if ($ this ->isSecondaryApiKey ()) {
222+ $ this ->notifyEndpoint = self ::SECONDARY_NOTIFY_ENDPOINT ;
223+ $ this ->sessionEndpoint = self ::SECONDARY_SESSION_ENDPOINT ;
224+ $ this ->buildEndpoint = self ::SECONDARY_BUILD_ENDPOINT ;
225225 } else {
226226 $ this ->notifyEndpoint = self ::NOTIFY_ENDPOINT ;
227227 $ this ->sessionEndpoint = self ::SESSION_ENDPOINT ;
@@ -236,11 +236,11 @@ public function __construct($apiKey)
236236 }
237237
238238 /**
239- * Checks if the API Key is associated with the InsightHub instance.
239+ * Checks if the API Key is associated with the secondary instance.
240240 *
241241 * @return bool
242242 */
243- public function isHubApiKey ()
243+ public function isSecondaryApiKey ()
244244 {
245245 // Does the API key start with 00000
246246 return strpos ($ this ->apiKey , '00000 ' ) === 0 ;
0 commit comments