Skip to content

Commit d254e8d

Browse files
committed
bug #43914 [5.4][WebProfiler] Fixing missing full_stack variable that's needed by toolbar.html.twig (weaverryan)
This PR was merged into the 5.4 branch. Discussion ---------- [5.4][WebProfiler] Fixing missing full_stack variable that's needed by toolbar.html.twig | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | None | License | MIT | Doc PR | Not needed The combination of #43526 and then #41257 created an undefined variable. By adding the variable here, it will flow from `toolbar_js.html.twig` into `toolbar.html.twig`. Tested locally after reproducing the issue. Thanks to symfony/ux test suite for catching this :) Commits ------- 0e8b864 Fixing missing full_stack variable that's needed by toolbar.html.twig
2 parents e29d9fa + 0e8b864 commit d254e8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\WebProfilerBundle\EventListener;
1313

14+
use Symfony\Bundle\FullStack;
1415
use Symfony\Bundle\WebProfilerBundle\Csp\ContentSecurityPolicyHandler;
1516
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1617
use Symfony\Component\HttpFoundation\Request;
@@ -142,6 +143,7 @@ protected function injectToolbar(Response $response, Request $request, array $no
142143
$toolbar = "\n".str_replace("\n", '', $this->twig->render(
143144
'@WebProfiler/Profiler/toolbar_js.html.twig',
144145
[
146+
'full_stack' => class_exists(FullStack::class),
145147
'excluded_ajax_paths' => $this->excludedAjaxPaths,
146148
'token' => $response->headers->get('X-Debug-Token'),
147149
'request' => $request,

0 commit comments

Comments
 (0)