/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Currency.php
32 строки
934 B
Dnyaneshwar S Jambhulkar
AC-15351::Identify and replace all Zend_Cache usages with symfony/cache across the codebase
04 янв 2026, 15:20
04 янв 2026, 15:20
05ab479
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework; use Magento\Framework\App\CacheInterface; use Magento\Framework\Currency\Data\Currency as CurrencyData; use Magento\Framework\Currency\Exception\CurrencyException; class Currency extends CurrencyData implements CurrencyInterface { /** * Creates a currency instance. * * @param CacheInterface $appCache * @param array|string|null $options Options array or currency short name when string is given * @param string|null $locale Locale name * @throws CurrencyException */ public function __construct( CacheInterface $appCache, $options = null, $locale = null ) { $frontendCache = $appCache->getFrontend(); $lowLevelCache = $frontendCache->getLowLevelFrontend(); self::setCache($lowLevelCache); parent::__construct($options, $locale); } }