Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Toolbar not showing when dumping variable #27258

Copy link
Copy link
Closed
@FabienPapet

Description

@FabienPapet
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.