/** * @param BuzzClientInterface $client */ public function __construct(BuzzClientInterface $client = null) { // @todo[1]: This exists for keeping BC. To be removed! $this->client = is_null($client) ? new Curl() : $client; $this->httpClient = new Client(array(), $client); $this->httpClient->addListener(new NormalizeArrayListener()); }