定制 notifier/notifier-bundle 二次开发

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

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

notifier/notifier-bundle

Composer 安装命令:

composer require notifier/notifier-bundle

包简介

Notifier integration for Symfony

README 文档

README

Build Status Latest Stable Version Latest Unstable Version Total Downloads Dependency Status License

Notifier integration for symfony projects.

Installation

Installing this bundle can be done through these simple steps:

  1. Add the bundle to your project as a composer dependency:
// composer.json
{
    // ...
    require: {
        // ...
        "notifier/notifier-bundle": "~1.0"
    }
}
  1. Update your composer installation:
composer update
  1. Add the bundle to your application kernel:
// app/AppKernel.php
public function registerBundles()
{
    // ...
    $bundle = array(
        // ...
        new Notifier\NotifierBundle\NotifierNotifierBundle(),
    );
    // ...

    return $bundles;
}

Usage

Implement the data provider

Implement \Notifier\NotifierBundle\Notifier\RecipientChannelResolverInterface and register it as a service. Than register that service identifier as the recipient_channel_resolver.

Configure the types

config.yml

notifier:
   recipient_channel_resolver: "acme.recipient_channel_resolver"
   types:
       alert:
           channels: [ "acme.mail_channel" ]

Make sure the channels all resolve to an existing service defined in the project.

Send a message

use Notifier\Message\Message;
use Notifier\Recipient\Recipient;
use Notifier\NotifierBundle\Type\Type;

// ...

$message = new Message(new Type('alert'));
$this->get('notifier')->sendMessage($message, array(new Recipient('identifier')));

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony. Make sure to check out php-cs-fixer as this will help you a lot.

If you would like to help, take a look at the list of issues.

Requirements

PHP 5.3.2 or above

Author and contributors

Dries De Peuter - dries@nousefreak.be - http://nousefreak.be

See also the list of contributors who participated in this project.

License

NotifierBundle is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固