定制 akki-team/sylius-messenger-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Install the plugin to your project with the following command:
$ composer require akki-team/sylius-messenger-plugin
  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-09-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固