Php 在Symfony 3.4中安装mailgun捆绑包,但无法识别选项“;终点“;错误
我试图将mailgun捆绑包安装到Symfony 3.4中,但出现了一个错误 首先,我通过composer下载了以下软件包:Php 在Symfony 3.4中安装mailgun捆绑包,但无法识别选项“;终点“;错误,php,symfony,swiftmailer,mailgun,Php,Symfony,Swiftmailer,Mailgun,我试图将mailgun捆绑包安装到Symfony 3.4中,但出现了一个错误 首先,我通过composer下载了以下软件包: "cspoo/swiftmailer-mailgun-bundle": "0.4.*", "php-http/guzzle6-adapter": "^1.1", "php-http/httplug-bundle": "^1.4", "azine/mailgunwebhooks-bundle": "*" 我看到它们安装在Symfony的供应商目录中。然后我将bunble添
"cspoo/swiftmailer-mailgun-bundle": "0.4.*",
"php-http/guzzle6-adapter": "^1.1",
"php-http/httplug-bundle": "^1.4",
"azine/mailgunwebhooks-bundle": "*"
我看到它们安装在Symfony的供应商目录中。然后我将bunble添加到AppKernal.php
new cspoo\Swiftmailer\MailgunBundle\cspooSwiftmailerMailgunBundle(),
最后,我在Symfony的config.yml中添加了以下配置设置:
cspoo_swiftmailer_mailgun:
key: "key-xxx"
domain: "mailer.xxx.nl"
endpoint: 'api.eu.mailgun.net'
http_client: 'httplug.client'
swiftmailer:
transport: "mailgun"
spool:
type: file
path: '%kernel.root_dir%/spool'
但是,当在symfony命令行上发送邮件或运行命令时,我收到以下错误:
“cspoo\u swiftmailer\u mailgun”下无法识别的选项“endpoint”
您似乎已将版本锁定为0.4(
composer show cspoo/swiftmailer mailgun bundle
将显示当前安装的版本)
端点
选项是在版本1.2.0中添加的。您似乎已将版本锁定为0.4(composer show cspoo/swiftmailer mailgun bundle
将显示当前安装的版本)
在版本1.2.0中添加了端点
选项