Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在Symfony 3.4中安装mailgun捆绑包,但无法识别选项“;终点“;错误_Php_Symfony_Swiftmailer_Mailgun - Fatal编程技术网

Php 在Symfony 3.4中安装mailgun捆绑包,但无法识别选项“;终点“;错误

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添

我试图将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添加到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中添加了
端点
选项