/**
  * Create a new instance of the Client if we don't have it or 
  * return the one we already have to reuse
  *
  * @return Client
  */
 protected static function getClientInstance()
 {
     if (self::$client === null) {
         self::$client = new Client();
         self::$client->setEncType(Client::ENC_URLENCODED);
     }
     return self::$client;
 }
Example #2
0
 protected static function getClientInstance()
 {
     if (self::$client === null) {
         self::$client = new Client();
     }
 }