Skip to content

Commit

Permalink
errors are not so handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlawrence committed Feb 6, 2019
1 parent 7429277 commit fdd0155
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ZCRMRestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ public function __construct() {
/**
* @param $config
* Init direct with yml file or array
* or
* or
* pre-parse config as a default and then init w/ updated array
* will allow config to be managed by end users app
*/
public static function initialize($config) {
ZCRMConfigUtil::initialize($config);
}

/**
*
*/
public static function parseConfig($config_path) {
return ZCRMConfigUtil::parseConfig($config_path);
}
Expand Down
1 change: 1 addition & 0 deletions src/common/ZCRMConfigUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static function initialize($config) {
self::$configProperties = self::$config['api'];
ZohoOAuth::initialize(self::$config);
}

public static function parseConfig($config_path) {
return Yaml::parseFile($config_path);
}
Expand Down

0 comments on commit fdd0155

Please sign in to comment.