我将一个项目从sf2.6 / php5.6更新到sf3.4 / php7.1,而我实际上遇到了以下2个弃用错误:
Method "StatusExtension::addStatusService()" is deprecated since SonataCoreBundle 3.x and will be removed in 4.0. Use the StatusRuntime instead.
和
Method "FlashMessageExtension::getFlashMessages()" is deprecated since SonataCoreBundle 3.x and will be removed in 4.0. Use the FlashMessageRuntime instead.
我搜索了所有这些函数调用,并发现了一些,但实际上它们都不在我们的代码库中:
./vendor/sonata-project/core-bundle/src/Twig/Extension/*.php
./vendor/sonata-project/core-bundle/src/DependencyInjection/Compiler/StatusRendererCompilerPass.php
为了防止这些弃用消息,我必须更新什么?我必须摆脱它们才能进一步迁移到sf3.4,但无法弄清楚如何解决这些问题。
一如既往,非常感谢您的帮助
更多信息:
sonata-project/admin-bundle 3.39.0
sonata-project/block-bundle 3.12.1
sonata-project/cache 2.0.1
sonata-project/core-bundle 3.11.2
sonata-project/datagrid-bundle 2.3.1
sonata-project/doctrine-extensions 1.0.2
sonata-project/doctrine-orm-admin-bundle 3.4.2
sonata-project/easy-extends-bundle 2.5.0
sonata-project/exporter 1.9.1
sonata-project/formatter-bundle 3.5.0
sonata-project/intl-bundle 2.5.0
sonata-project/jquery-bundle 1.10.2
sonata-project/markitup-bundle 2.1.0
sonata-project/media-bundle 3.15.0
twig/extensions v1.5.2
twig/twig v2.5.0
编辑:
我使用的是Sonata核心捆绑包的最新版本,所以我不能只更新最明显的程序包...我已经做到了。