hometogo / mandrill-bundle
此包已被废弃且不再维护。未建议替代包。
关于此包最新版本(dev-master)的许可信息不可用。
Swiftmailer-Mandrill 集成用于 Symfony2
dev-master
2016-11-22 09:33 UTC
Requires
- php: >=5.4
- mandrill/mandrill: ^1.0
- swiftmailer/swiftmailer: ^5.4
- symfony/config: ^2.7
- symfony/dependency-injection: ^2.7
- symfony/http-kernel: ^2.7
This package is not auto-updated.
Last update: 2018-05-05 13:22:49 UTC
README
此Bundle用于在使用Swiftmailer的同时发送邮件通过Mandrill。
安装
-
在终端中运行以下命令
composer require hometogo/mandrill-bundle
-
在您的
AppKernel.php
文件中注册此Bundle<?php // in AppKernel::registerBundles() $bundles = array( // ... new Htg\MandrillBundle\HtgMandrillBundle(), );
-
将您的API密钥添加到 app/config/parameters.yml.dist
mandrill_key: ~
-
配置Bundle使用您的密钥 app/config/config.yml
mandrill: api_key: %mandrill_key%
-
在 app/config/config.yml 中注册mandrill传输
swiftmailer: default_mailer: mandrill # optional mailers: mandrill: transport: mandrill
-
将
mandrill_key: ~
添加到paramters.yml
并通过以下命令确保容器完整性composer install