Skip to content

Commit cdbc675

Browse files
committed
ACP2E-1044: Fixer.IO API doesn't work
1 parent d291e1f commit cdbc675

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/code/Magento/Directory/Model/Currency/Import/FixerIoApiLayer.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ class FixerIoApiLayer implements \Magento\Directory\Model\Currency\Import\Import
2525
. 'apikey={{ACCESS_KEY}}&base={{CURRENCY_FROM}}&symbols={{CURRENCY_TO}}';
2626

2727
/**
28-
* Messages
29-
*
3028
* @var array
3129
*/
32-
protected $_messages = [];
30+
private $_messages = [];
3331

3432
/**
3533
* @var HttpClientFactory
@@ -39,7 +37,7 @@ class FixerIoApiLayer implements \Magento\Directory\Model\Currency\Import\Import
3937
/**
4038
* @var CurrencyFactory
4139
*/
42-
protected $_currencyFactory;
40+
private $_currencyFactory;
4341

4442
/**
4543
* Core scope config
@@ -97,7 +95,7 @@ public function fetchRates()
9795
}
9896

9997
/**
100-
* @return array
98+
* @inheritdoc
10199
*/
102100
public function getMessages()
103101
{
@@ -162,7 +160,7 @@ private function convertBatch(array $data, string $currencyFrom, array $currenci
162160
* @param array $rates
163161
* @return \Magento\Directory\Model\Currency\Import\FixerIoApiLayer
164162
*/
165-
protected function _saveRates(array $rates)
163+
private function _saveRates(array $rates)
166164
{
167165
foreach ($rates as $currencyCode => $currencyRates) {
168166
$this->_currencyFactory->create()->setId($currencyCode)->setRates($currencyRates)->save();

0 commit comments

Comments
 (0)