Ovh\Common\Auth\Keyring::setAppSecret PHP Method

setAppSecret() public static method

public static setAppSecret ( $secret )
    public static function setAppSecret($secret)
    {
        self::$appSecret = (string) $secret;
    }

Usage Example

Example #1
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config = array())
 {
     // Populate keyring
     Keyring::setAppKey($config['AK']);
     // Application Key
     Keyring::setAppSecret($config['AS']);
     // Application Secret
     Keyring::setConsumerKey($config['CK']);
     // Consumer Key
     // Backward compatibility
     if (array_key_exists('RG', $config)) {
         keyring::setAppUrlRegion($config['RG']);
         // Region
     } else {
         keyring::setAppUrlRegion("FR");
     }
 }