Pingpp\Pingpp::setPrivateKeyPath PHP Method

setPrivateKeyPath() public static method

public static setPrivateKeyPath ( string $path )
$path string
    public static function setPrivateKeyPath($path)
    {
        self::$privateKeyPath = $path;
    }

Usage Example

コード例 #1
0
ファイル: Pingpp.php プロジェクト: lyt8384/pingpp-yii2-plus
 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);
     }
 }
All Usage Examples Of Pingpp\Pingpp::setPrivateKeyPath