Skip to content

Commit

Permalink
Merge pull request #3 from experius/bugfix/BOEK-1540
Browse files Browse the repository at this point in the history
[BUGFIX][BOEK-1540] Compatible with the latest postcode-nl module
  • Loading branch information
Hexmage authored Feb 22, 2024
2 parents 3f597be + 698d50e commit d2b77b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions Model/Resolver/AddressDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ class AddressDetails implements ResolverInterface
* @param Settings $helper
*/
public function __construct(
StoreConfigHelper $helper
PostcodeApiClient $postcodeHelper
) {
$this->postcodeHelper = new PostcodeApiClient(
$helper->getValue(StoreConfigHelper::PATH['api_key']),
$helper->getValue(StoreConfigHelper::PATH['api_secret'])
);
$this->postcodeHelper = $postcodeHelper;
}

/**
Expand Down
7 changes: 2 additions & 5 deletions Model/Resolver/Autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@ class Autocomplete implements ResolverInterface
* @param Settings $helper
*/
public function __construct(
StoreConfigHelper $helper,
PostcodeApiClient $postcodeHelper,
CountryInformationAcquirerInterface $countryInterface
) {
$this->postcodeHelper = new PostcodeApiClient(
$helper->getValue(StoreConfigHelper::PATH['api_key']),
$helper->getValue(StoreConfigHelper::PATH['api_secret'])
);
$this->postcodeHelper = $postcodeHelper;
$this->countryInterface = $countryInterface;
}

Expand Down
7 changes: 2 additions & 5 deletions Model/Resolver/Postcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ class Postcode implements ResolverInterface
* @param PostcodeApiClient $postcodeHelper
*/
public function __construct(
StoreConfigHelper $helper
PostcodeApiClient $postcodeHelper
) {
$this->postcodeHelper = new PostcodeApiClient(
$helper->getValue(StoreConfigHelper::PATH['api_key']),
$helper->getValue(StoreConfigHelper::PATH['api_secret'])
);
$this->postcodeHelper = $postcodeHelper;
}

/**
Expand Down

0 comments on commit d2b77b0

Please sign in to comment.