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:
parent
f53d169978
commit
af430c5e17
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user