我正在将 Symfony 项目从 5.0 更新到 5.1 有一个弃用提示说RouteCollectionBuilder已弃用,RoutingConfigurator应改为使用。
确切的消息是
由于 symfony/routing 5.1: "Symfony\Component\Routing\RouteCollectionBuilder" 类已被弃用,请改用 "Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator"。
这应该如何实施?我应该更改供应商文件夹中的代码吗?
在 Symfony 5.1.8 项目中,我将 httplug 包更新到了 1.19.0 版。
它在变更日志中提到:
ConfiguredClientsStrategy 不再实现 EventSubscriberInterface,这已移至 ConfiguredClientsStrategyListener 以避免在每个请求上初始化策略。
这会导致 In 中的错误
EventDispatcher.php 第 270 行
Failed to create closure from callable: class 'Http\HttplugBundle\Discovery\ConfiguredClientsStrategy' does not have a method 'onEvent'
Run Code Online (Sandbox Code Playgroud)