You are here

public function CurrencyCacheContext::__construct in Commerce Currency Resolver 8

Constructs a new StoreCacheContext class.

Parameters

\Drupal\commerce_currency_resolver\CurrentCurrency $current_currency: The current currency.

File

src/Cache/Context/CurrencyCacheContext.php, line 29

Class

CurrencyCacheContext
Defines the CurrencyCacheContext service, for "per currency" caching.

Namespace

Drupal\commerce_currency_resolver\Cache\Context

Code

public function __construct(CurrentCurrency $current_currency) {
  $this->currentCurrency = $current_currency;
}