php – Symfony 3和MonologBu​​ndle – DebugHandlerPass与AddDebugLogProcessorPass

我在symfony日志中找到了这条 PHP消息:

PHP.INFO: The
Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\DebugHandlerPass
class is deprecated since version 2.12 and will be removed in 3.0. Use
AddDebugLogProcessorPass in FrameworkBundle instead. {“type”:16384,
“file”:”/mnt/400Go/www/sy1/vendor/symfony/monolog-bundle/DependencyInjection/Compiler/DebugHandlerPass.PHP”,
“line”:14,“level”:28928,“stack”:[…]

我正在使用symfony 3.1.15和Monolog 2.8 ……所以这个东西应该已经删除了,不是吗?

我可以在/vendor/symfony/monolog-bundle/DependencyInjection/Compiler/DebugHandlerPass.PHP中看到DebugHandlerPass类中的消息

在/vendor/symfony/monolog-bundle/MonologBu​​ndle.PHP中,有两行调用DebugHandlerPass类:

use Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\DebugHandlerPass;

$container->addCompilerPass(new DebugHandlerPass($channelPass));

PHP文件中没有一个是AddDebugLogProcessorPass类…

也许版本不匹配.如果有人能给我一个提示,那就太好了.

最好的祝福,

MC

只需将您的“symfony / monolog-bundle”依赖关系更新到最新的3.0版本,它就能解决问题;)

https://packagist.org/packages/symfony/monolog-bundle

问候,

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...