首页 > 解决方案 > 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

我不知道该怎么做

标签: phpsymfonyherokuamqp

解决方案


推荐阅读