mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 11:33:49 +00:00
Feature: [address reference] write logic to match existing addresses with updates
Feature: [address reference] match addresses with reference after import fix sql query for address reference matcher
This commit is contained in:
@@ -22,12 +22,15 @@ class AddressReferenceFromBano
|
||||
{
|
||||
private AddressReferenceBaseImporter $baseImporter;
|
||||
|
||||
private AddressToReferenceMatcher $addressToReferenceMatcher;
|
||||
|
||||
private HttpClientInterface $client;
|
||||
|
||||
public function __construct(HttpClientInterface $client, AddressReferenceBaseImporter $baseImporter)
|
||||
public function __construct(HttpClientInterface $client, AddressReferenceBaseImporter $baseImporter, AddressToReferenceMatcher $addressToReferenceMatcher)
|
||||
{
|
||||
$this->client = $client;
|
||||
$this->baseImporter = $baseImporter;
|
||||
$this->addressToReferenceMatcher = $addressToReferenceMatcher;
|
||||
}
|
||||
|
||||
public function import(string $departementNo): void
|
||||
@@ -82,6 +85,8 @@ class AddressReferenceFromBano
|
||||
|
||||
$this->baseImporter->finalize();
|
||||
|
||||
$this->addressToReferenceMatcher->checkAddressesMatchingReferences();
|
||||
|
||||
fclose($file);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user