Merge pull request #1 from pjedrzejewski/multi-channel

Fix the issue when money helper hits the db during warmup
This commit is contained in:
Michał Marcinkowski 2015-05-21 14:30:10 +02:00
commit c01bb1d59d
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ class MoneyHelper extends BaseMoneyHelper
{
$this->currencyContext = $currencyContext;
parent::__construct($locale, $this->getDefaultCurrency());
parent::__construct($locale);
}
/**

View file

@ -31,7 +31,7 @@ class MoneyHelper extends Helper
* @param string $locale The locale used to format money.
* @param string $currency The default currency.
*/
public function __construct($locale, $currency)
public function __construct($locale, $currency = null)
{
$this->locale = $locale ?: \Locale::getDefault();
$this->currency = $currency;