duanshangying5102 2016-11-15 14:34
浏览 32
已采纳

不推荐使用Symfony DebugHandlerPass类

have version

    "php": ">=5.6",
    "symfony/symfony": "v2.8.13",
    "symfony/monolog-bundle": "3.0",

When run test have this

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: 1x 1x in AppNewsTest::__construct from FooBundle\Tests\Integration\Application\Notifications

all tests done but have this error and in travis have build pass how ti fix this ?

  • 写回答

2条回答 默认 最新

  • doushan6161 2016-11-15 16:40
    关注

    Check which monolog-bundle is really resolved:

    I am pretty sure it's 2.12 and the 'error' message is simpy telling you that with the current monolog version you're using you're calling a deprecated class. So only when your monolog bundle really resolves to something like >= 3.0 you will get real trouble.

    This is message is only there to prepare you once you upgrade to Monolog 3.0

    By the way, the latest Monolog stable version is 2.11.1 according to their releases page - why are you requesting a higher one now? (and how does it fit to you a Symfony < 3)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)