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 @@ -220,10 +220,10 @@ pages from a server.
220
220
221
221
By default, the debug toolbar displays the information of the initial page load
222
222
and doesn't refresh after each AJAX request. However, you can set the
223
- ``Symfony-Debug-Toolbar-Replace `` header to a value of ``1 `` in the response to
223
+ ``Symfony-Debug-Toolbar-Replace `` header to a value of ``'1' `` in the response to
224
224
the AJAX request to force the refresh of the toolbar::
225
225
226
- $response->headers->set('Symfony-Debug-Toolbar-Replace', 1 );
226
+ $response->headers->set('Symfony-Debug-Toolbar-Replace', '1' );
227
227
228
228
Ideally this header should only be set during development and not for
229
229
production. To do that, create an :doc: `event subscriber </event_dispatcher >`
@@ -258,7 +258,7 @@ event::
258
258
}
259
259
260
260
$response = $event->getResponse();
261
- $response->headers->set('Symfony-Debug-Toolbar-Replace', 1 );
261
+ $response->headers->set('Symfony-Debug-Toolbar-Replace', '1' );
262
262
}
263
263
}
264
264
You can’t perform that action at this time.
0 commit comments