Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Description
Hi,
According to the documentation:https://symfony.com/doc/current/templates.html#the-dump-twig-utilities, we have to executecomposer require --dev symfony/var-dumper to have{{ dump() }} and{% dump() %} in Twig templates.
But with only this command, we have access to only{{ dump() }} (original Twig function, just avar_dump() and do not use the var-dumperdump() function) and not{% dump() %} (error :Unexpected "dump" tag (expecting closing tag for the "block" tag defined near line 17).)
So, to make it works, we need to havesymfony/debug-bundle installed too.
I'm not sure it's a documentation issue, or if we should have var-dumper used by Twig only with the installation of symfony/var-dumper, as written in the documentation?