Skip to content

Commit 5771785

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Update http_kernel.rst chore: replace word throw by dispatch for event chore: replace `workflow` by `flow` and add more context
2 parents fe4d0f2 + b833ab1 commit 5771785

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

components/event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ truly extensible.
2828
Take an example from :doc:`the HttpKernel component </components/http_kernel>`.
2929
Once a ``Response`` object has been created, it may be useful to allow other
3030
elements in the system to modify it (e.g. add some cache headers) before
31-
it's actually used. To make this possible, the Symfony kernel throws an
31+
it's actually used. To make this possible, the Symfony kernel dispatches an
3232
event - ``kernel.response``. Here's how it works:
3333

3434
* A *listener* (PHP object) tells a central *dispatcher* object that it

components/http_kernel.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ Installation
1515
1616
.. include:: /components/require_autoload.rst.inc
1717

18-
The Workflow of a Request
19-
-------------------------
18+
.. _the-workflow-of-a-request:
19+
20+
The Request-Response Lifecycle
21+
------------------------------
2022

2123
.. seealso::
2224

@@ -29,7 +31,7 @@ The Workflow of a Request
2931
Every HTTP web interaction begins with a request and ends with a response.
3032
Your job as a developer is to create PHP code that reads the request information
3133
(e.g. the URL) and creates and returns a response (e.g. an HTML page or JSON string).
32-
This is a simplified overview of the request workflow in Symfony applications:
34+
This is a simplified overview of the request-response lifecycle in Symfony applications:
3335

3436
#. The **user** asks for a **resource** in a **browser**;
3537
#. The **browser** sends a **request** to the **server**;
@@ -66,7 +68,7 @@ that system::
6668

6769
Internally, :method:`HttpKernel::handle() <Symfony\\Component\\HttpKernel\\HttpKernel::handle>` -
6870
the concrete implementation of :method:`HttpKernelInterface::handle() <Symfony\\Component\\HttpKernel\\HttpKernelInterface::handle>` -
69-
defines a workflow that starts with a :class:`Symfony\\Component\\HttpFoundation\\Request`
71+
defines a lifecycle that starts with a :class:`Symfony\\Component\\HttpFoundation\\Request`
7072
and ends with a :class:`Symfony\\Component\\HttpFoundation\\Response`.
7173

7274
.. raw:: html
@@ -75,7 +77,7 @@ and ends with a :class:`Symfony\\Component\\HttpFoundation\\Response`.
7577
alt="A flow diagram showing all HTTP Kernel events in the Request-Response lifecycle. Each event is numbered 1 to 8 and described in detail in the following subsections."
7678
></object>
7779

78-
The exact details of this workflow are the key to understanding how the kernel
80+
The exact details of this lifecycle are the key to understanding how the kernel
7981
(and the Symfony Framework or any other library that uses the kernel) works.
8082

8183
HttpKernel: Driven by Events
@@ -485,7 +487,7 @@ as possible to the client (e.g. sending emails).
485487

486488
.. _component-http-kernel-kernel-exception:
487489

488-
Handling Exceptions: the ``kernel.exception`` Event
490+
9) Handling Exceptions: the ``kernel.exception`` Event
489491
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
490492

491493
**Typical Purposes**: Handle some type of exception and create an appropriate

0 commit comments

Comments
 (0)