Skip to content

Commit 27f7029

Browse files
noniagriconomieOskarStark
authored andcommitted
Update profiler.rst
1 parent a00a407 commit 27f7029

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

profiler.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ event::
206206
if (!$this->getKernel()->isDebug()) {
207207
return;
208208
}
209+
210+
$request = $event->getRequest();
211+
if (!$request->isXmlHttpRequest()) {
212+
return;
213+
}
209214

210215
$response = $event->getResponse();
211216
$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);

0 commit comments

Comments
 (0)