Skip to content

Commit

Permalink
Merge pull request #1 from pjedrzejewski/multi-channel
Browse files Browse the repository at this point in the history
Fix the issue when money helper hits the db during warmup
  • Loading branch information
michalmarcinkowski committed May 21, 2015
2 parents 54a909a + cdccf82 commit c01bb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -33,7 +33,7 @@ public function __construct($locale, CurrencyContextInterface $currencyContext)
{
$this->currencyContext = $currencyContext;

parent::__construct($locale, $this->getDefaultCurrency());
parent::__construct($locale);
}

/**
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit c01bb1d

Please sign in to comment.