gpt4 book ai didi

php - Symfony httplug 包句柄缺少 EventSubscriberInterface

转载 作者:行者123 更新时间:2023-12-05 09:36:59 25 4
gpt4 key购买 nike

在 Symfony 5.1.8 项目中,我将 httplug 包更新到版本 1.19.0。

它在变更日志中提到:

ConfiguredClientsStrategy no longer implementsEventSubscriberInterface, this has been moved toConfiguredClientsStrategyListener to avoid initializing the strategyon every request.

这导致 In 的错误

EventDispatcher.php line 270

Failed to create closure from callable: class 'Http\HttplugBundle\Discovery\ConfiguredClientsStrategy' does not have a method 'onEvent'

最佳答案

我在 Symfony 4.4.16 上遇到了同样的问题,我不得不手动删除旧缓存以在生产中修复它:

rm -rf var/cache/prod && bin/console cache:clear

关于php - Symfony httplug 包句柄缺少 EventSubscriberInterface,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64609516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com