Example #1
0
 /**
  * @return Api
  */
 public static function getApi()
 {
     if (static::$api == null) {
         static::$api = new \PFinal\Wechat\Api(self::$config);
     }
     return static::$api;
 }
Example #2
0
 public static function updateConfiguration($config)
 {
     static::$config = $config;
     static::$api = new \XLite\Module\XC\PitneyBowes\Model\Shipping\PitneyBowesApiFacade(static::$config);
 }
Example #3
0
 public static function setApi(QiitaAPIInterface $api)
 {
     static::$api = $api;
 }
Example #4
0
 public function __construct()
 {
     static::$api = \Yii::$app->params['api'];
 }