1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-13 03:45:22 +01:00

[Service] Setting a config before setting the base_url of a client

This commit is contained in:
Michael Dowling 2011-03-22 15:46:25 -05:00
parent f53d169978
commit af430c5e17

View File

@ -85,10 +85,10 @@ class Client extends AbstractSubject
*/
public function __construct($baseUrl, $config = null)
{
$this->setBaseUrl($baseUrl);
if ($config) {
$this->setConfig($config);
}
$this->setBaseUrl($baseUrl);
}
/**