コード例 #1
0
ファイル: AbstractAPI.php プロジェクト: mengjiaqi/wechat
 /**
  * Return the http instance.
  *
  * @return \EasyWeChat\Core\Http
  */
 public function getHttp()
 {
     if (is_null($this->http)) {
         $this->http = new Http();
     }
     if (count($this->http->getMiddlewares()) === 0) {
         $this->registerHttpMiddlewares();
     }
     return $this->http;
 }