Feat: Make CRM ids configurable
This commit is contained in:
@@ -14,6 +14,7 @@ class ApiClient
|
||||
public function __construct(
|
||||
private readonly HttpClientInterface $httpClient,
|
||||
private readonly SerializerInterface $serializer,
|
||||
private readonly ResponseParser $responseParser,
|
||||
array $options
|
||||
) {
|
||||
$this->config = $this->resolveOptions($options);
|
||||
@@ -49,7 +50,7 @@ class ApiClient
|
||||
|
||||
$xml = $response->getContent();
|
||||
|
||||
return (new ResponseParser())->parseXmlString($xml);
|
||||
return $this->responseParser->parseXmlString($xml);
|
||||
} catch (\Throwable $e) {
|
||||
}
|
||||
|
||||
@@ -89,7 +90,7 @@ class ApiClient
|
||||
|
||||
$xml = $response->getContent();
|
||||
|
||||
return (new ResponseParser())->parseXmlString($xml);
|
||||
return $this->responseParser->parseXmlString($xml);
|
||||
} catch (\Throwable $e) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user