Skip to content

Commit

Permalink
Converted configuration to object
Browse files Browse the repository at this point in the history
  • Loading branch information
mgi1982 committed Feb 6, 2017
1 parent 587a229 commit 9abe0d1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions helpers/GoogleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ public static function initConfig(
$developerKey,
$refreshToken
) {
self::$_config = [
'clientID' => $clientID,
'clientSecret' => $clientSecret,
'redirectUri' => $redirectUri,
'developerKey' => $developerKey,
'refreshToken' => $refreshToken,
];
self::$_config = new \stdClass();
self::$_config->clientID = $clientID;
self::$_config->clientSecret = $clientSecret;
self::$_config->redirectUri = $redirectUri;
self::$_config->developerKey = $developerKey;
self::$_config->refreshToken = $refreshToken;
}

private static function loadConfig()
Expand Down

0 comments on commit 9abe0d1

Please sign in to comment.