Symfony 4.1转储不起作用 [英] Symfony 4.1 dump doesn't work

查看:78
本文介绍了Symfony 4.1转储不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Symfony 4.1,转储功能在控制器上不起作用,但在树枝文件上起作用,如果我删除了symfony/debug-bundle,则转储在控制器中可以正常工作,但在正确地操作它,就像简单的var_dump一样.有谁知道为什么会这样?

I just installed the Symfony 4.1, the dump function doesn't work on controller but it works on twig files, if I remove the symfony/debug-bundle, then the dump works correctly in controller but it doesn't work in twig properly, it acts like simple var_dump. Does any body have any idea why this is happening?

推荐答案

此问题已通过symfony 4.1.1(

This problem is fixed with symfony 4.1.1, https://github.com/symfony/symfony/releases/tag/v4.1.1

dd()工作.

这篇关于Symfony 4.1转储不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆