akki-team/sylius-messenger-plugin
Composer 安装命令:
composer require akki-team/sylius-messenger-plugin
包简介
关键字:
README 文档
README
Overview
This plugin works with symfony/messenger and Sylius.
With two new stamps (LocaleStamp and ChannelStamp) you can set the locale and channel context directly in your message.
The context will be automatically set when the message will be consumed.
Installation
- Install the plugin to your project with the following command:
$ composer require akki-team/sylius-messenger-plugin
- After the installation, check that the plugin is correctly declared in your project in the file
config/bundles.php.
return [ ... Akki\SyliusMessengerPlugin\AkkiSyliusMessengerPlugin::class => ['all' => true], ];
Example
use Akki\SyliusMessengerPlugin\Stamp\ChannelStamp; use Akki\SyliusMessengerPlugin\Stamp\LocaleStamp; $envelope = new Envelope(new MyMessage(), [ new LocaleStamp('en_US'), new ChannelStamp('web'), ]); $this->bus->dispatch($envelope);
统计信息
- 总下载量: 2.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2024-09-04