Exemplo n.º 1
0
 /**
  * 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;
 }