加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – Symfony 3和MonologBu??ndle – DebugHandlerPass与AddDe

发布时间:2020-12-13 13:31:00 所属栏目:PHP教程 来源:网络整理
导读:我在symfony日志中找到了这条 PHP消息: php.INFO: The SymfonyBundleMonologBundleDependencyInjectionCompilerDebugHandlerPass class is deprecated since version 2.12 and will be removed in 3.0. Use AddDebugLogProcessorPass in FrameworkBund
我在symfony日志中找到了这条 PHP消息:

php.INFO: The
SymfonyBundleMonologBundleDependencyInjectionCompilerDebugHandlerPass
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 SymfonyBundleMonologBundleDependencyInjectionCompilerDebugHandlerPass;

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

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

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

最好的祝福,

MC

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

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

问候,

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读