igdr/messanger-bundle

此包最新版本(dev-master)没有可用的许可信息。

消息包

安装数: 6,205

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

dev-master 2016-01-08 13:56 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:24:54 UTC


README

安装

将包添加到您的 composer.json

"igdr/messanger-bundle" : "dev-master"

并运行

php composer.phar update

然后将消息包添加到您的应用程序内核

// app/IgdrKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Igdr\Bundle\MessangerBundle\IgdrMessangerBundle(),
        new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
        // ...
    );
}

向 app/config/parameters.ini 添加参数

mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null

向 app/config/config.yml 添加 swiftmailer 配置

swiftmailer:
    transport: "%mailer_transport%"
    host:      "%mailer_host%"
    username:  "%mailer_user%"
    password:  "%mailer_password%"
    
igdr_messanger:
    email: 
        from: text@example.com
        from_name: example