Ejemplo n.º 1
0
 /**
  * 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();
     }
 }
Ejemplo n.º 2
0
 public function addSubscriber($event)
 {
     $this->client->getHttpClient()->addSubscriber($event);
 }
Ejemplo n.º 3
0
 public function removeSubscriber($event)
 {
     $this->client->getHttpClient()->removeSubscriber($event);
 }