/** * Construct the http client * * In case you are implementing your own adapter, the base url will be passed on through the $parameters array * at every call in the respective get / post methods etc. of the adapter. * * @return void */ protected function constructHttpClient() { $hasHttpClient = null !== $this->httpClient; $this->httpClient = new HttpClient($this->getOptions()); if (!$hasHttpClient) { $this->httpClient->registerDefaults(); } }
public function addSubscriber($event) { $this->client->getHttpClient()->addSubscriber($event); }
public function removeSubscriber($event) { $this->client->getHttpClient()->removeSubscriber($event); }