zendframework/zf2 — pull request #650 by wilmoore (2011-12-06 05:20:17+00:00)
Title: Removed hard requirement on Zend\Config component

Removed the hard requirement on Zend\Config component in order to make the HTTP client more attractive to those that prefer not to use Zend\Config component.

Further, the $config ends up being converted into a hash anyhow, so leaving out Zend\Config handling allows other frameworks/components to employ their own configuration objects as long as they can serialize to a simple hash when constructing an instance of Http\Client.

For example, see the diff for the file named "StaticTest.php" @ line ~256. Originally:

So, instead of calling:
$this->_client->setConfig($config);

the caller now simply does this following:
$this->_client->setConfig($config->toArray());

More predictable, less magic, more interoperability.