承接 splashx/notification-mq-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

splashx/notification-mq-bundle

Composer 安装命令:

composer require splashx/notification-mq-bundle

包简介

Add queue's to notification bundle

README 文档

README

This extension provides the ability to send messages deferred

Usage

  • Install extention.
  • Configure AMQPStreamConnection connection:
    PhpAmqpLib\Connection\AMQPStreamConnection:
        autowire: true
        arguments:
          - '%rabbit_host%'
          - '%rabbit_port%'
          - '%rabbit_login%'
          - '%rabbit_pass%'
    
  • Configure MQClient:
    Splashx\NotificationQueueBundle\Driver\MQClient:
    arguments:
    - '%rabbit_queue%'
    - '%rabbit_consumer%'
    - '@PhpAmqpLib\Connection\AMQPStreamConnection'
    
  • Configure NotificationManager Decoration with:
    Splashx\NotificationQueueBundle\Model\NotificationManagerDecorator:
    decorates: 'symfony_bro.notification_core.notification_manager'
    arguments: ['@Splashx\NotificationQueueBundle\Model\NotificationManagerDecorator.inner']
    
  • In yours NotificationBuilder use MQNotificationDecorator notification type with argument notification object you need to send deffered.
    return new MQNotificationDecorator(new TelegramNotification([
      'chat_id' => '276316291',
      'fullName' => $context->getUserChangedPost()->getFullName(),
      'postTitle' => $context->getPost()->getTitle(),
      'template' => $template->getTemplate(),
    ]));
    
  • Configure comand with:
    splashx_notification_queue.command.mqread_queue_command:
    class: Splashx\NotificationQueueBundle\Command\MQReadQueueCommand
    arguments: ['@symfony_bro.notification_core.notification_manager', '@Splashx\NotificationQueueBundle\Driver\MQClient']
    tags:
    - { name: console.command }
    
  • Listen notification queue with MQnotifications:readQueue
  • Be happy!

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固