Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Currency.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework;
7 
9 
10 class Currency extends \Zend_Currency implements CurrencyInterface
11 {
19  public function __construct(
20  CacheInterface $appCache,
21  $options = null,
22  $locale = null
23  ) {
24  // set Zend cache to low level frontend app cache
25  $lowLevelFrontendCache = $appCache->getFrontend()->getLowLevelFrontend();
26  \Zend_Currency::setCache($lowLevelFrontendCache);
27  parent::__construct($options, $locale);
28  }
29 }
__construct(CacheInterface $appCache, $options=null, $locale=null)
Definition: Currency.php:19
static setCache(Zend_Cache_Core $cache)
Definition: Currency.php:507