akki-team/sylius-settable-locale-plugin
Composer 安装命令:
composer require akki-team/sylius-settable-locale-plugin
包简介
关键字:
README 文档
README
Overview
This plugin allows you to set the locale context directly, with a localeCode thanks to the
SettableLocaleContextInterface.
Very useful in your symfony/command and symfony/messenger where locale context cannot be determined because there is
no request.
See the methods available for the SettableLocaleContextInterface.
Installation
- Install the plugin to your project with the following command:
$ composer require akki-team/sylius-settable-locale-plugin
- After the installation, check that the plugin is correctly declared in your project in the file
config/bundles.php.
return [ ... Akki\SyliusSettableLocalePlugin\AkkiSyliusSettableLocalePlugin::class => ['all' => true], ];
- You can now inject the SettableChannelContextInterface in your services and set the channel context directly.
$this->settableLocaleContext->setLocaleCode($localeCode);
统计信息
- 总下载量: 2.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2024-09-04