我在symfony日志中找到了这条PHP消息:
php.INFO:Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\DebugHandlerPass类自版本2.12起不推荐使用,将在3.0中删除.请改用FrameworkBundle中的AddDebugLogProcessorPass.{"type":16384,"file":"/ mnt/400Go/www/sy1/vendor/symfony/monolog-bundle/DependencyInjection/Compiler/DebugHandlerPass.php","line":14,"level":28928, "堆":[...]
我正在使用symfony 3.1.15和Monolog 2.8 + ...所以这个东西应该已经删除了,不是吗?
我可以在/vendor/symfony/monolog-bundle/DependencyInjection/Compiler/DebugHandlerPass.php中查看DebugHandlerPass类中的消息
在/vendor/symfony/monolog-bundle/MonologBundle.php中,有两行调用DebugHandlerPass类:
use Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\DebugHandlerPass;
$container->addCompilerPass(new DebugHandlerPass($channelPass));
Run Code Online (Sandbox Code Playgroud)
但PHP文件中没有一个是AddDebugLogProcessorPass类......
也许版本不匹配.如果有人能给我一个提示,那就太好了.
最好的祝福,
MC