/** * 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; }