igdr / messanger-bundle
此包最新版本(dev-master)没有可用的许可信息。
消息包
dev-master
2016-01-08 13:56 UTC
Requires
- php: >=5.3.3
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: >=2.4
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