public function setBasicAuth($user, $pass) { $this->client->addSubscriber(new CurlAuthPlugin($user, $pass)); }