mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Merge pull request #1 from pjedrzejewski/multi-channel
Fix the issue when money helper hits the db during warmup
This commit is contained in:
commit
c01bb1d59d
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ class MoneyHelper extends BaseMoneyHelper
|
|||
{
|
||||
$this->currencyContext = $currencyContext;
|
||||
|
||||
parent::__construct($locale, $this->getDefaultCurrency());
|
||||
parent::__construct($locale);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue