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