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