NumberFormatterFactory.php in Commerce Core 8.2
File
modules/price/src/NumberFormatterFactory.php
View source
<?php
namespace Drupal\commerce_price;
use CommerceGuys\Intl\Formatter\CurrencyFormatterInterface;
@trigger_error('The ' . __NAMESPACE__ . '\\NumberFormatterFactory is deprecated. Instead, use \\Drupal\\commerce_price\\CurrencyFormatter. See https://www.drupal.org/node/2975672.', E_USER_DEPRECATED);
class NumberFormatterFactory implements NumberFormatterFactoryInterface {
protected $currencyFormatter;
public function __construct(CurrencyFormatterInterface $currency_formatter) {
$this->currencyFormatter = $currency_formatter;
}
public function createInstance() {
return new LegacyNumberFormatter($this->currencyFormatter);
}
}