php - Heroku - 未安装“amqp”扩展
问题描述
我正在尝试在 Heroku 上部署我的 Symfony 5 应用程序,但是在部署期间,我遇到了这个错误:
In Connection.php line 108:
You cannot use the "Symfony\Component\Messenger\Bridge\Amqp\Transport\Conne
ction" as the "amqp" extension is not installed.
所以我尝试在我的项目中安装 Composer,ext-amqp,像这样
composer require ext-amqp
但它由此产生:
Using version ^1.10 for ext-amqp
./composer.json has been updated
Running composer update ext-amqp
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Executing script cache:clear [OK]
Executing script assets:install public [OK]
Package ext-amqp is not installed
我不知道该怎么做
解决方案
推荐阅读
- bash - Bash - 检查参数的数量
- azure-resource-manager - Classic 到 ARM 迁移后虚拟机的 DNS 名称
- swift - 完成事件后,Swift Combine 发布者不会在 flatMap 中触发
- java - 不能在 Eclipse 中使用 Eclemma 覆盖工具
- c++ - (为什么)这个带有临时/匿名对象的模板类的实例化是一个令人烦恼的解析吗?
- sql - 输出存储过程的结果
- eslint - 如何禁用“未找到规则'自定义规则'的定义”错误?
- javascript - 如何从 d3.js 实现图形的 html 变量
- c# - Listview 包含具有外键的项目
- python - 如何在网络抓取期间找到所有标签隐藏的href?