【问题标题】:Symfony: Unable to replace alias "swiftmailer.mailer.default.transport.real" with actual definition ""Symfony:无法用实际定义“”替换别名“swiftmailer.mailer.default.transport.real”
【发布时间】:2017-04-25 14:58:32
【问题描述】:

我在从 composer 安装库时遇到了一个奇怪的错误。

运行“composer install”并安装所有库后,我在终端中得到了这样的结果:

更新“app/config/parameters.yml”文件

Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] 无法用实际定义“”替换别名“swiftmailer.mailer.default.transport.real”。

奇怪的是,在我的 MAC dev(mac air、homebrew php 和 mysql)设置上,我没有这个问题。但是在这台机器(Windows 10,Yoga 900)上从我的 github 仓库安装项目时,我遇到了这个问题。

如果错误再次发生,我无法运行 'php bin/console debug:container'。

版本: Symfony 3.0.9 SwiftMailer v5.4.3

我用谷歌搜索了这个问题,但没有找到答案,但发现了相关问题:

https://github.com/symfony/swiftmailer-bundle/issues/59

Error after updating symfony/swiftmailer-bundle to 2.2.5

非常感谢任何帮助,不幸的是我没有解决这个问题的知识。

【问题讨论】:

    标签: php dependencies composer-php symfony


    【解决方案1】:

    同样的问题,我的问题是我没有在 parameters.yml 中设置 mailer_transport

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多