|
...
|
...
|
@@ -27,13 +27,8 @@ class Client |
|
|
|
*/
|
|
|
|
protected function __construct(RequestInterface $request)
|
|
|
|
{
|
|
|
|
$clientConfig = (array)config('customs.client', [
|
|
|
|
'timeout' => 30
|
|
|
|
]);
|
|
|
|
$config = $clientConfig + [
|
|
|
|
'base_uri' => config('customs.host')
|
|
|
|
];
|
|
|
|
$this->guzzleHttp = new GuzzleHttp($config);
|
|
|
|
$clientConfig = (array)config('customs.client');
|
|
|
|
$this->guzzleHttp = new GuzzleHttp($clientConfig);
|
|
|
|
$this->request = $request;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|