From 70f808d8b2ec5485145723bd79df098c8a99e2a8 Mon Sep 17 00:00:00 2001 From: Stefan Liebehenz Date: Fri, 9 Sep 2016 18:28:03 +0200 Subject: [PATCH] base url const --- src/Client.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 9a6c8d6..8a0a776 100644 --- a/src/Client.php +++ b/src/Client.php @@ -4,6 +4,11 @@ use GuzzleHttp\Command\Guzzle\GuzzleClient; class Client { + /** + * Base URL to FCN + */ + const FCN_URL = 'https://fcm.googleapis.com/fcm/'; + /** * Guzzle service description * @@ -153,7 +158,7 @@ private function loadConfig() $description = $this->loadResource('service-config'); // initial description building, use api info and build base url $description = $description + [ - 'baseUrl' => 'https://fcm.googleapis.com/fcm/', + 'baseUrl' => $this::FCN_URL, 'operations' => [], 'models' => [] ];