Skip to content

Commit cc774af

Browse files
committed
Minor tweak
1 parent f6435e3 commit cc774af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

profiler.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Symfony Profiler, which will look like this:
2626

2727
.. note::
2828

29-
The debug toolbar is only injected on HTML response.
30-
In an API like project, profiler URL is available in the
31-
`X-Debug-Token-Link` HTTP header of the response.
32-
You can see all profiles by going to the ``/_profiler`` URL.
29+
The debug toolbar is only injected into HTML responses. For other kinds of
30+
contents (e.g. JSON responses in API requests) the profiler URL is available
31+
in the ``X-Debug-Token-Link`` HTTP response header. Browse the ``/_profiler``
32+
URL to see all profiles.
3333

3434
Accessing Profiling Data Programmatically
3535
-----------------------------------------
@@ -213,7 +213,7 @@ event::
213213
if (!$this->getKernel()->isDebug()) {
214214
return;
215215
}
216-
216+
217217
$request = $event->getRequest();
218218
if (!$request->isXmlHttpRequest()) {
219219
return;

0 commit comments

Comments
 (0)