Skip to content

Commit

Permalink
base url const
Browse files Browse the repository at this point in the history
  • Loading branch information
netTrekSL committed Sep 9, 2016
1 parent 3e238ad commit 70f808d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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' => []
];
Expand Down

0 comments on commit 70f808d

Please sign in to comment.