public static setPrivateKeyPath ( string $path ) | ||
$path | string |
public static function setPrivateKeyPath($path)
{
self::$privateKeyPath = $path;
}
public function init() { \Pingpp\Pingpp::setApiKey($this->live ? $this->live_secret_key : $this->test_secret_key); if (!empty($this->private_key_path)) { if (file_exists($this->private_key_path)) { throw new InvalidConfigException('The private key file not exists.'); } \Pingpp\Pingpp::setPrivateKeyPath($this->private_key_path); } }