What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hey guys, I just installed Spryker 202009. When using the dump function in Twig templates I get the

Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

Hey guys,

I just installed Spryker 202009. When using the dump function in Twig templates I get the data dumped, but just with a regular PHP var_dump
...
vendor/twig/twig/src/Extension/DebugExtension.php:70

How can I get the data dumped with the pretty Twig dump which was working in older versions.. like here
https://i.stack.imgur.com/q1OhZ.png

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)
  • Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    What I see is this..

    $twig->addExtension(new DebugExtension());
    

    Twig is initialized with the DebugExtension
    vendor/twig/twig/src/Extension/DebugExtension.php

    But the Extension is just dumping with

    var_dump($var);
    

    If the debugging thing you sended would be disabled it wouldnt dump at all i think

  • Application Architect @ Spryker Sprykee Posts: 212 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited October 2020

    The nice output is symfony dump() result, so you can overwrite debugExtension using dump() function

Welcome!

It looks like you're new here. Sign in or register to get started.