File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,10 +213,10 @@ pages from a server.
213
213
214
214
By default, the debug toolbar displays the information of the initial page load
215
215
and doesn't refresh after each AJAX request. However, you can set the
216
- ``Symfony-Debug-Toolbar-Replace `` header to a value of ``1 `` in the response to
216
+ ``Symfony-Debug-Toolbar-Replace `` header to a value of ``'1' `` in the response to
217
217
the AJAX request to force the refresh of the toolbar::
218
218
219
- $response->headers->set('Symfony-Debug-Toolbar-Replace', 1 );
219
+ $response->headers->set('Symfony-Debug-Toolbar-Replace', '1' );
220
220
221
221
Ideally this header should only be set during development and not for
222
222
production. To do that, create an :doc: `event subscriber </event_dispatcher >`
@@ -251,7 +251,7 @@ event::
251
251
}
252
252
253
253
$response = $event->getResponse();
254
- $response->headers->set('Symfony-Debug-Toolbar-Replace', 1 );
254
+ $response->headers->set('Symfony-Debug-Toolbar-Replace', '1' );
255
255
}
256
256
}
257
257
You can’t perform that action at this time.
0 commit comments