Skip to content

Update http_kernel.rst #13889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ exception and create an appropriate error ``Response``.
For example, to generate a 404 page, you might throw a special type of exception
and then add a listener on this event that looks for this exception and
creates and returns a 404 ``Response``. In fact, the HttpKernel component
comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`,
comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener`,
which if you choose to use, will do this and more by default (see the sidebar
below for more details).

Expand All @@ -547,10 +547,10 @@ below for more details).
There are two main listeners to ``kernel.exception`` when using the
Symfony Framework.

**ExceptionListener in the HttpKernel Component**
**ErrorListener in the HttpKernel Component**

The first comes core to the HttpKernel component
and is called :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`.
and is called :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener`.
The listener has several goals:

1) The thrown exception is converted into a
Expand Down