Skip to content

Commit 417dae6

Browse files
committed
Improved a lot of things thanks to the comments made by reviewers
1 parent 4c5c851 commit 417dae6

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

cookbook/profiler/profiling_data.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ Using this token, you can access the profile of any past response thanks to the
2525

2626
.. tip::
2727

28-
When the profiler is enabled but not the web debug toolbar, use your browser
29-
inspection tools to get the value of the ``X-Debug-Token`` HTTP header.
28+
When the profiler is enabled but not the web debug toolbar, inspect the page
29+
with your browser's developer tools to get the value of the ``X-Debug-Token``
30+
HTTP header.
3031

3132
The ``profiler`` service also provides the
3233
:method:`Symfony\\Component\\HttpKernel\\Profiler\\Profiler::find` method to
@@ -46,7 +47,7 @@ look for tokens based on some criteria::
4647
->find('', '', 10, '4 days ago', '2 days ago');
4748

4849
Lastly, if you want to manipulate profiling data on a different machine than the
49-
one where the information were generated, use the ``profiler:export`` and
50+
one where the information was generated, use the ``profiler:export`` and
5051
``profiler:import`` commands:
5152

5253
.. code-block:: bash

reference/events.rst

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object to match the ``Request`` and determine the Controller name (stored in the
4141

4242
Read more on the :ref:`kernel.request event <component-http-kernel-kernel-request>`.
4343

44-
These are the built-in Symfony listeners related to this event:
44+
These are the built-in Symfony listeners registered to this event:
4545

4646
============================================================================= ========
4747
Listener Class Name Priority
@@ -59,8 +59,7 @@ Listener Class Name P
5959

6060
**Event Class**: :class:`Symfony\\Component\\HttpKernel\\Event\\FilterControllerEvent`
6161

62-
This event is not used by the FrameworkBundle, but can be an entry point used
63-
to modify the controller that should be executed::
62+
This event can be an entry point used to modify the controller that should be executed::
6463

6564
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
6665

@@ -149,7 +148,7 @@ The FrameworkBundle registers several listeners:
149148

150149
Read more on the :ref:`kernel.response event <component-http-kernel-kernel-response>`.
151150

152-
These are the built-in Symfony listeners related to this event:
151+
These are the built-in Symfony listeners registered to this event:
153152

154153
=================================================================================== ========
155154
Listener Class Name Priority
@@ -168,8 +167,8 @@ Listener Class Name
168167

169168
**Event Class**: :class:`Symfony\\Component\\HttpKernel\\Event\\PostResponseEvent`
170169

171-
The purpose of this event is to perform "heavier" tasks after the response
172-
was already served to the client.
170+
The purpose of this event is to perform tasks after the response was already
171+
served to the client.
173172

174173
.. seealso::
175174

@@ -191,11 +190,9 @@ Listener Class Name Prior
191190

192191
**Event Class**: :class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`
193192

194-
The FrameworkBundle registers an
195-
:class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener` that
196-
forwards the ``Request`` to a given Controller (the value of the
197-
``exception_listener.controller`` parameter -- must be in the
198-
``class::method`` notation).
193+
The TwigBundle registers an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`
194+
that forwards the ``Request`` to a given controller defined by the
195+
``exception_listener.controller`` parameter.
199196

200197
A listener on this event can create and set a ``Response`` object, create
201198
and set a new ``Exception`` object, or do nothing::
@@ -232,7 +229,7 @@ and set a new ``Exception`` object, or do nothing::
232229

233230
Read more on the :ref:`kernel.exception event <component-http-kernel-kernel-exception>`.
234231

235-
These are the built-in Symfony listeners related to this event:
232+
These are the built-in Symfony listeners registered to this event:
236233

237234
========================================================================= ========
238235
Listener Class Name Priority

0 commit comments

Comments
 (0)