Skip to content

Toolbar not showing when dumping variable #27258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FabienPapet opened this issue May 14, 2018 · 1 comment
Closed

Toolbar not showing when dumping variable #27258

FabienPapet opened this issue May 14, 2018 · 1 comment

Comments

@FabienPapet
Copy link

FabienPapet commented May 14, 2018

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

@ogizanagi
Copy link
Contributor

Thanks for opening, but it's already fixed by #27189 😉 (will be available in beta2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants