Skip to content

Toolbar not showing when dumping variable #27258

Closed
@FabienPapet

Description

@FabienPapet

Symfony version(s) affected: 4.1-BETA1 - Worked on 4.0.9

Description
A Js error generated by the Symfony toolbar, then it isn't showing up

ReferenceError: assignment to undeclared variable Sfdump

How to reproduce

Clone this repository then run composer install && php bin/console server:run
https://github.com/FabienPapet/symfony-issue

Possible Solution

n/a

Additional context

<?php
namespace App\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class TestController extends Controller
{
    /**
     * @Route("/test", name="test")
     * @return Response
     */
    public function fooAction()
    {
        dump('test');
        return $this->render('base.html.twig');
    }
}

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions