/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
setup/src/Magento/Setup/Module/I18n/Pack/WriterInterface.php
47 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 11:23
22 окт 2025, 11:23
6c2f6e6
Код
Авторство
О чём код?
<?php /** * Copyright 2015 Adobe * All Rights Reserved. */ namespace Magento\Setup\Module\I18n\Pack; use Magento\Setup\Module\I18n\Dictionary; use Magento\Setup\Module\I18n\Locale; /** * Pack writer interface */ interface WriterInterface { /**#@+ * Save pack modes */ const MODE_REPLACE = 'replace'; const MODE_MERGE = 'merge'; /**#@-*/ /** * Write dictionary data to language pack * * @param \Magento\Setup\Module\I18n\Dictionary $dictionary * @param string $packPath * @param \Magento\Setup\Module\I18n\Locale $locale * @param string $mode One of const of WriterInterface::MODE_ * @return void * @deprecated 2.1.0 Writing to a specified pack path is not supported after custom vendor directory support. * Dictionary data will be written to current Magento codebase. */ public function write(Dictionary $dictionary, $packPath, Locale $locale, $mode); /** * Write dictionary data to current Magento codebase * * @param \Magento\Setup\Module\I18n\Dictionary $dictionary * @param \Magento\Setup\Module\I18n\Locale $locale * @param string $mode One of const of WriterInterface::MODE_ * @return void */ public function writeDictionary(Dictionary $dictionary, Locale $locale, $mode); }