You are here

public function CurrentCurrency::__construct in Commerce Currency Resolver 8

File

src/CurrentCurrency.php, line 37

Class

CurrentCurrency
Holds a reference to the currency, resolved on demand.

Namespace

Drupal\commerce_currency_resolver

Code

public function __construct(RequestStack $request_stack, CurrencyHelperInterface $currency_helper) {
  $this->requestStack = $request_stack;
  $this->currencyHelper = $currency_helper;
  $this->currency = new \SplObjectStorage();
}