Commit a16653af authored by Thorsten Buss's avatar Thorsten Buss

FIX: set key in array repository for indexed arrays

parent b9658ec4
......@@ -22,7 +22,9 @@ class ArrayRepository implements CurrencyRepositoryInterface {
* @param array $currencies
*/
public function __construct(array $currencies) {
$this->currencies = $currencies;
foreach ($currencies as $currency) {
$this->currencies[$currency['code']] = $currency;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment