public function NumberFormatterFactory::__construct in Price 3.x
Same name and namespace in other branches
- 8 src/NumberFormatterFactory.php \Drupal\price\NumberFormatterFactory::__construct()
- 3.0.x src/NumberFormatterFactory.php \Drupal\price\NumberFormatterFactory::__construct()
Constructs a new NumberFormatterFactory object.
Parameters
\CommerceGuys\Intl\Formatter\CurrencyFormatterInterface $currency_formatter: The currency formatter.
File
- src/
NumberFormatterFactory.php, line 29
Class
- NumberFormatterFactory
- Defines the NumberFormatter factory.
Namespace
Drupal\priceCode
public function __construct(CurrencyFormatterInterface $currency_formatter) {
$this->currencyFormatter = $currency_formatter;
}