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