Feat: Make CRM ids configurable

This commit is contained in:
Björn Fromme
2023-09-12 15:08:23 +02:00
parent 08f7836d41
commit 69b6a0f395
5 changed files with 41 additions and 16 deletions
+3 -2
View File
@@ -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) {
}